From 18c2c5918e70a5a1eeaf72aa6e6b4cc47334d093 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 11 Dec 2017 17:32:40 +0100 Subject: [PATCH] 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 --- source3/modules/vfs_aio_fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.3