diff options
| author | Guixin Liu <kanie@linux.alibaba.com> | 2024-11-04 11:55:00 +0300 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2024-11-11 20:49:50 +0300 |
| commit | 8a825d22a70915bd80c811fa93538cf2540af29d (patch) | |
| tree | 9604187b32f4d5333c4e00bf5157627ccc11e0f1 /include | |
| parent | 1d811438851bae0d5593a9ecc0736db4b3c6d994 (diff) | |
| download | linux-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')
| -rw-r--r-- | include/linux/nvme.h | 1 |
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, |
