+1
−0
+24
−3
+2
−0
Loading
If flush is requested for nvme device, spdk should guarantee that data is not in volatile write cache (VWC). Therefore, flush is send only if device reported VWC support. Similar approach is used in Linux kernel. The cache check is added in nvme_bdev because this way it is not preventing from sending flush is passthrough mode. Due do backward compatibility, bdev_nvme flush support in disabled by default and must be turned on by setting "enable_flush" rpc option. Change-Id: I2912963e62596e2fa1410e4edc14921c7e25de9c Signed-off-by:Mariusz Tkaczyk <mariusz.tkaczyk@dell.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26141 Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Konrad Sztyber <ksztyber@nvidia.com>