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: Simon A. F. Lund <simon.lund@samsung.com>
Change-Id: Ifa604b52bb2b924fab4b559fae06f26a3574db42
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14679
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Simon A. F. Lund 2022-09-26 17:26:45 +02:00 committed by Konrad Sztyber
parent ecbdca493e
commit cfe5d18823

View File

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