workqueue: Ensure submission offload worker inherits parent's options
authorAndrey Kuzmin <andrey.v.kuzmin@gmail.com>
Tue, 8 Sep 2015 15:10:55 +0000 (09:10 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 8 Sep 2015 15:10:55 +0000 (09:10 -0600)
Properly initialize sibling's eo, as otherwise it will miss parent's
options.

Signed-off-by: Jens Axboe <axboe@fb.com>
workqueue.c

index e2365167a9b52d3f429da56c8cd26d377122d362..60e6ab2843f074742789d730ff5cde8410d4bc0c 100644 (file)
@@ -162,6 +162,7 @@ static int init_submit_worker(struct submit_worker *sw)
        memcpy(&td->ts, &parent->ts, sizeof(td->ts));
        td->o.uid = td->o.gid = -1U;
        dup_files(td, parent);
        memcpy(&td->ts, &parent->ts, sizeof(td->ts));
        td->o.uid = td->o.gid = -1U;
        dup_files(td, parent);
+       td->eo = parent->eo;
        fio_options_mem_dupe(td);
 
        if (ioengine_load(td))
        fio_options_mem_dupe(td);
 
        if (ioengine_load(td))