Fix start delay being the same across threads
authorJens Axboe <axboe@kernel.dk>
Tue, 12 Jun 2018 02:02:10 +0000 (20:02 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Jun 2018 02:02:10 +0000 (20:02 -0600)
commit49050b56681b17968256702a7a3ec0f545c7dad8
treecbd45596c0f740dc30e3c5ffb39f1f83156c7ce3
parentab5643cb04dac549b2202231d5c6e33339b7fe7d
Fix start delay being the same across threads

Two issues here:

1) We copy the start_delay into the original thread, which ends up
   offsetting job 2..N off the thread 1 start delay
2) We don't initialize the start delay random seed prior to
   generating the offsets

Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c
thread_options.h