From 7800ef7ff23a53d20cafcc17ff637c366601f565 Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Thu, 17 Jan 2019 13:36:21 -0700 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/c/441066 Reviewed-by: Jim Harris Reviewed-by: Darek Stojaczyk Tested-by: SPDK CI Jenkins --- examples/bdev/fio_plugin/fio_plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/bdev/fio_plugin/fio_plugin.c b/examples/bdev/fio_plugin/fio_plugin.c index 10a7ea7d8..bc788d85f 100644 --- a/examples/bdev/fio_plugin/fio_plugin.c +++ b/examples/bdev/fio_plugin/fio_plugin.c @@ -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 *));