[filedisk] Increase timeout for threaded disk processing
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Tue, 1 Jun 2010 04:43:43 +0000 (00:43 -0400)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Tue, 1 Jun 2010 04:43:43 +0000 (00:43 -0400)
If there's nothing to do but a possible device__free(),
just sleep for up to a whole second before checking.

src/winvblock/filedisk/filedisk.c

index b6b79f9..4ced971 100644 (file)
@@ -361,7 +361,10 @@ thread (
   LARGE_INTEGER timeout;
   PLIST_ENTRY walker;
 
-  timeout.QuadPart = -100000LL;
+  /*
+   * Wake up at least every second
+   */
+  timeout.QuadPart = -10000000LL;
   /*
    * The read/write request processing loop
    */