io_u: sequence random buflen generation individually
authorJens Axboe <axboe@kernel.dk>
Fri, 7 Jul 2017 14:33:57 +0000 (08:33 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 7 Jul 2017 14:33:57 +0000 (08:33 -0600)
commit2f282cecc27c58ed3aa1204f5bda98433502d7ff
tree05a2107b8f7295abeb9b6a875a4fe510ff20a769
parentf25f4ef6d123173d7669553ec712419f95c1a3ea
io_u: sequence random buflen generation individually

For trimwrite, we rely on write+trim generating identical
buffer lengths, if they have identical settings. If we use
bssplit, then we generate them using a random generator
according to the percentages set. This means we may not get
the same offsets in sequence.

Split the seeding into separate random generators, and ensure
that we seed the write and trim ones identically, if we are
doing trim writes.

Fixes: https://github.com/axboe/fio/issues/399
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fio.h
init.c
io_u.c