bdev/uring: Unset write_cache

Unset the write_cache as the uring bdev does not support Flush I/O.

Signed-off-by: Krishna Kanth Reddy <krish.reddy@samsung.com>
Change-Id: I8e6fce26b12176a7c77c40a1c9102be5cb72e358
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12900
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Krishna Kanth Reddy 2022-06-03 18:28:42 +05:30 committed by David Ko
parent 50deaa1c13
commit 2419fed568

View File

@ -764,7 +764,7 @@ create_uring_bdev(const char *name, const char *filename, uint32_t block_size)
uring->bdev.product_name = "URING bdev";
uring->bdev.module = &uring_if;
uring->bdev.write_cache = 1;
uring->bdev.write_cache = 0;
detected_block_size = spdk_fd_get_blocklen(uring->fd);
if (block_size == 0) {