bdev : xNVMe BDEV module performance fix

This change fixes the lower performance issue of the
xNVMe BDEV for libaio and io_uring backends. There is no
drop in the performance for the io_uring passthrough backend.

Signed-off-by: Krishna Kanth Reddy <krish.reddy@samsung.com>
Change-Id: I21de1b49a534cfc642d1873ef623271063da6af8
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14015
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Krishna Kanth Reddy 2022-08-13 05:29:10 +05:30 committed by Jim Harris
parent 5a21d4c5b0
commit 17948bcaa9

View File

@ -285,6 +285,7 @@ create_xnvme_bdev(const char *name, const char *filename, const char *io_mechani
return NULL; return NULL;
} }
opts.direct = 1;
opts.async = io_mechanism; opts.async = io_mechanism;
if (!opts.async) { if (!opts.async) {
goto error_return; goto error_return;