]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/file: Less variation on file lock waits
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:48 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:48 +0000 (11:23 -0700)
The wait time are large enough that less variance will prevent too
frequent polling. This is important due to the randomized waiting now.

open-vm-tools/lib/file/fileLockPrimitive.c

index 2a64cc5b18ab1eef7365e148e6007a4461212a5a..1324b8e242c34248df83f5f35868342e01920b60 100644 (file)
@@ -153,7 +153,7 @@ FileLockSleeper(LockValues *myValues)  // IN/OUT:
     * (thundering herds).
     */
 
-   (void) FileSleeper(maxSleepTimeMsec / 10, maxSleepTimeMsec);
+   (void) FileSleeper(maxSleepTimeMsec / 2, maxSleepTimeMsec);
 
    return 0;
 }