summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_aio_fork.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2017-12-11 17:32:40 +0100
committerJeremy Allison <jra@samba.org>2017-12-12 20:37:08 +0100
commit18c2c5918e70a5a1eeaf72aa6e6b4cc47334d093 (patch)
tree1c15ed652a3a4bea87a3b4e44c5155e68292e84e /source3/modules/vfs_aio_fork.c
parent4091179ca890b095ef17f59b2bf008ae0a13a3bf (diff)
downloadsamba-18c2c5918e70a5a1eeaf72aa6e6b4cc47334d093.tar.gz
vfs_aio_fork: Use a shorter random delay
Otherwise the rw2 test takes ages for no good reason Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/modules/vfs_aio_fork.c')
-rw-r--r--source3/modules/vfs_aio_fork.c2
1 files changed, 1 insertions, 1 deletions
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);
}