Commit cfe5d188 authored by Simon A. F. Lund's avatar Simon A. F. Lund Committed by Konrad Sztyber
Browse files

bdev/xnvme: enable polling on io_uring_cmd



Fixes #2708 for io_uring_cmd.

This is a minimal approach to enabling polling for bdev_xnvme. Ideally,
more would be done, however, there are several blockers to remove when
doing so. Thus, this commit only enables polling on
io_mechanism=io_uring_cmd.

Signed-off-by: default avatarSimon A. F. Lund <simon.lund@samsung.com>
Change-Id: Ifa604b52bb2b924fab4b559fae06f26a3574db42
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14679


Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent ecbdca49
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -320,6 +320,10 @@ create_xnvme_bdev(const char *name, const char *filename, const char *io_mechani
		goto error_return;
	}

	if (!strcmp(xnvme->io_mechanism, "io_uring_cmd")) {
		opts.poll_sq = 1;
	}

	xnvme->filename = strdup(filename);
	if (!xnvme->filename) {
		goto error_return;