]> git.hungrycats.org Git - linux/commit
nvme: fix NVME_NS_DEAC may incorrectly identifying the disk as EXT_LBA.
authorBoyang Yu <yuboyang@dapustor.com>
Mon, 17 Jun 2024 13:11:44 +0000 (21:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2024 07:53:33 +0000 (09:53 +0200)
commit7fb0205d2250d8be161fca83e4834fa94c45dedd
tree5640dd546b4d00eeee13bb5071ec3859d0222d67
parent27a32986dfe9d441e1eace96624dfc3ee8d5166f
nvme: fix NVME_NS_DEAC may incorrectly identifying the disk as EXT_LBA.

[ Upstream commit 9570a48847e3acfa1a741cef431c923325ddc637 ]

The value of NVME_NS_DEAC is 3,
which means NVME_NS_METADATA_SUPPORTED | NVME_NS_EXT_LBAS. Provide a
unique value for this feature flag.

Fixes 1b96f862eccc ("nvme: implement the DEAC bit for the Write Zeroes command")
Signed-off-by: Boyang Yu <yuboyang@dapustor.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/nvme.h