From 17948bcaa99a007cae04e556391918dd4c3ee6c9 Mon Sep 17 00:00:00 2001 From: Krishna Kanth Reddy Date: Sat, 13 Aug 2022 05:29:10 +0530 Subject: [PATCH] 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 Change-Id: I21de1b49a534cfc642d1873ef623271063da6af8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14015 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker Reviewed-by: Changpeng Liu Reviewed-by: Dong Yi Reviewed-by: Jim Harris --- module/bdev/xnvme/bdev_xnvme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/module/bdev/xnvme/bdev_xnvme.c b/module/bdev/xnvme/bdev_xnvme.c index 92347a388..3a8a3ca6f 100644 --- a/module/bdev/xnvme/bdev_xnvme.c +++ b/module/bdev/xnvme/bdev_xnvme.c @@ -285,6 +285,7 @@ create_xnvme_bdev(const char *name, const char *filename, const char *io_mechani return NULL; } + opts.direct = 1; opts.async = io_mechanism; if (!opts.async) { goto error_return;