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 <benjamin.walker@intel.com>
Change-Id: Ibd8a652c1be32e020a281529b50576c62ff12a98
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12201
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
This commit is contained in:
Ben Walker 2022-04-07 13:56:16 -07:00 committed by Tomasz Zawadzki
parent d5f7c9d3f7
commit 958ca17750

View File

@ -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