]> www.infradead.org Git - users/dwmw2/linux.git/commit
nvme: check ns's volatile write cache not present
authorGuixin Liu <kanie@linux.alibaba.com>
Mon, 4 Nov 2024 08:55:00 +0000 (16:55 +0800)
committerKeith Busch <kbusch@kernel.org>
Mon, 11 Nov 2024 17:49:50 +0000 (09:49 -0800)
commit8a825d22a70915bd80c811fa93538cf2540af29d
tree9604187b32f4d5333c4e00bf5157627ccc11e0f1
parent1d811438851bae0d5593a9ecc0736db4b3c6d994
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>
drivers/nvme/host/core.c
include/linux/nvme.h