From 908ecf9cc408272a201bd0d007ca2ff10146d148 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Tue, 4 Jul 2017 13:21:13 +0800 Subject: [PATCH] fio_plugin: add 1 io_queue_depth Checked the code and found that our nvme perf example added 1 io_queue_depth. Since if you set queue_depth=n, the real entry is n - 1. Change-Id: Ie204fc061b98e853e9b810eff21f79565c2ad8d0 Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/367931 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- examples/nvme/fio_plugin/fio_plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/nvme/fio_plugin/fio_plugin.c b/examples/nvme/fio_plugin/fio_plugin.c index 58723909b..b1e2f83e6 100644 --- a/examples/nvme/fio_plugin/fio_plugin.c +++ b/examples/nvme/fio_plugin/fio_plugin.c @@ -92,6 +92,10 @@ static bool probe_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid, struct spdk_nvme_ctrlr_opts *opts) { + struct thread_data *td = (struct thread_data *)cb_ctx; + + opts->io_queue_size = td->o.iodepth + 1; + return true; }