From 958ca177507d6b7d30e05a16f3fae4e661d56f07 Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Thu, 7 Apr 2022 13:56:16 -0700 Subject: [PATCH] spdk_dd: Correctly allocate enough queue depth for both input and output When using io_uring, both input and output operations can be outstanding at the same time. Ensure there is enough queue depth. Signed-off-by: Ben Walker Change-Id: Ibd8a652c1be32e020a281529b50576c62ff12a98 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12201 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Shuhei Matsumoto --- app/spdk_dd/spdk_dd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/spdk_dd/spdk_dd.c b/app/spdk_dd/spdk_dd.c index 53b985dd7..d3e6ea1ef 100644 --- a/app/spdk_dd/spdk_dd.c +++ b/app/spdk_dd/spdk_dd.c @@ -857,7 +857,7 @@ dd_run(void *arg1) #ifdef SPDK_CONFIG_URING if (g_opts.aio == false) { g_job.u.uring.poller = spdk_poller_register(dd_uring_poll, NULL, 0); - io_uring_queue_init(g_opts.queue_depth, &g_job.u.uring.ring, 0); + io_uring_queue_init(g_opts.queue_depth * 2, &g_job.u.uring.ring, 0); g_job.u.uring.active = true; } else #endif