Commit 958ca177 authored by Ben Walker's avatar Ben Walker Committed by Tomasz Zawadzki
Browse files

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: default avatarBen 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: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
parent d5f7c9d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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