direct-io.hg

changeset 11554:39aaa54756db

[tools] Increases some of the timeouts
since e.g. stealing the hotplug lock after five seconds is completely insane.

From: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author Christian Limpach <Christian.Limpach@xensource.com>
date Thu Sep 21 13:53:49 2006 +0100 (2006-09-21)
parents 93135bbb5344
children 3b7c45e3bf94
files tools/examples/locking.sh tools/ioemu/target-i386-dm/helper2.c tools/python/xen/xend/server/DevController.py
line diff
     1.1 --- a/tools/examples/locking.sh	Thu Sep 21 11:33:38 2006 +0100
     1.2 +++ b/tools/examples/locking.sh	Thu Sep 21 13:53:49 2006 +0100
     1.3 @@ -21,7 +21,7 @@
     1.4  
     1.5  LOCK_SLEEPTIME=1
     1.6  LOCK_SPINNING_RETRIES=5
     1.7 -LOCK_RETRIES=10
     1.8 +LOCK_RETRIES=100
     1.9  LOCK_BASEDIR=/var/run/xen-hotplug
    1.10  
    1.11  
     2.1 --- a/tools/ioemu/target-i386-dm/helper2.c	Thu Sep 21 11:33:38 2006 +0100
     2.2 +++ b/tools/ioemu/target-i386-dm/helper2.c	Thu Sep 21 13:53:49 2006 +0100
     2.3 @@ -520,8 +520,8 @@ int main_loop(void)
     2.4              }
     2.5          }
     2.6  
     2.7 -        /* Wait up to 10 msec. */
     2.8 -        main_loop_wait(10);
     2.9 +        /* Wait up to 100 msec. */
    2.10 +        main_loop_wait(100);
    2.11  
    2.12          if (env->send_event) {
    2.13              env->send_event = 0;
     3.1 --- a/tools/python/xen/xend/server/DevController.py	Thu Sep 21 11:33:38 2006 +0100
     3.2 +++ b/tools/python/xen/xend/server/DevController.py	Thu Sep 21 13:53:49 2006 +0100
     3.3 @@ -25,7 +25,7 @@ from xen.xend.XendLogging import log
     3.4  from xen.xend.xenstore.xstransact import xstransact, complete
     3.5  from xen.xend.xenstore.xswatch import xswatch
     3.6  
     3.7 -DEVICE_CREATE_TIMEOUT = 10
     3.8 +DEVICE_CREATE_TIMEOUT = 100
     3.9  HOTPLUG_STATUS_NODE = "hotplug-status"
    3.10  HOTPLUG_ERROR_NODE  = "hotplug-error"
    3.11  HOTPLUG_STATUS_ERROR = "error"