summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGuixin Liu <kanie@linux.alibaba.com>2024-11-04 11:55:00 +0300
committerKeith Busch <kbusch@kernel.org>2024-11-11 20:49:50 +0300
commit8a825d22a70915bd80c811fa93538cf2540af29d (patch)
tree9604187b32f4d5333c4e00bf5157627ccc11e0f1 /include/linux
parent1d811438851bae0d5593a9ecc0736db4b3c6d994 (diff)
downloadlinux-8a825d22a70915bd80c811fa93538cf2540af29d.tar.xz
nvme: check ns's volatile write cache not present
When the VWC of a namespace does not exist, the BLK_FEAT_WRITE_CACHE flag should not be set when registering the block device, regardless of whether the controller supports VWC. Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index c136d64c7d73..0a6e22038ce3 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -564,6 +564,7 @@ enum {
NVME_NS_FLBAS_META_EXT = 0x10,
NVME_NS_NMIC_SHARED = 1 << 0,
NVME_NS_ROTATIONAL = 1 << 4,
+ NVME_NS_VWC_NOT_PRESENT = 1 << 5,
NVME_LBAF_RP_BEST = 0,
NVME_LBAF_RP_BETTER = 1,
NVME_LBAF_RP_GOOD = 2,