fio: Correctly set thread after allocating it in bdev fio_plugin

This was broken recently when spdk_allocate_thread was modified
to no longer implicity set the thread.

Change-Id: I436e368f45ba908d1542cf1bbcb6de0b18c595dc
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/c/441066
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Ben Walker 2019-01-17 13:36:21 -07:00 committed by Darek Stojaczyk
parent c1fbefa1bb
commit 7800ef7ff2

View File

@ -110,6 +110,7 @@ spdk_fio_init_thread(struct thread_data *td)
SPDK_ERRLOG("failed to allocate thread\n");
return -1;
}
spdk_set_thread(fio_thread->thread);
fio_thread->iocq_size = td->o.iodepth;
fio_thread->iocq = calloc(fio_thread->iocq_size, sizeof(struct io_u *));