From: Volker Lendecke Date: Mon, 11 Dec 2017 16:32:40 +0000 (+0100) Subject: vfs_aio_fork: Use a shorter random delay X-Git-Tag: talloc-2.1.11~246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18c2c5918e70a5a1eeaf72aa6e6b4cc47334d093;p=thirdparty%2Fsamba.git vfs_aio_fork: Use a shorter random delay Otherwise the rw2 test takes ages for no good reason Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 40fba4dbdc0..a0b1429132a 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -331,7 +331,7 @@ static void aio_child_loop(int sockfd, struct mmap_area *map) * common parent state */ generate_random_buffer(&randval, sizeof(randval)); - msecs = randval + 20; + msecs = (randval%20)+1; DEBUG(10, ("delaying for %u msecs\n", msecs)); smb_msleep(msecs); }