Merge branch 'offload-flags-fix' of https://github.com/vincentkfu/fio
authorJens Axboe <axboe@kernel.dk>
Tue, 11 Sep 2018 14:25:57 +0000 (08:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Sep 2018 14:25:57 +0000 (08:25 -0600)
* 'offload-flags-fix' of https://github.com/vincentkfu/fio:
  rate_submit: synchronize accesses to io_u_queue->nr

rate-submit.c

index 5c77a4e8ecb83089ad2fb6a0322aafcbcab2bc4c..2f02fe2ba8365dea762051e555b1f28651ee45e3 100644 (file)
@@ -126,7 +126,7 @@ static int io_workqueue_init_worker_fn(struct submit_worker *sw)
        clear_io_state(td, 1);
 
        td_set_runstate(td, TD_RUNNING);
-       td->flags |= TD_F_CHILD;
+       td->flags |= TD_F_CHILD | TD_F_NEED_LOCK;
        td->parent = parent;
        return 0;