Commit 92141ccf authored by Krishna Kanth Reddy's avatar Krishna Kanth Reddy Committed by Ben Walker
Browse files

bdev/uring: Unset write_cache



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

Signed-off-by: default avatarKrishna 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: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent ce3ffc23
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {