Skip to content

Commit 9570a48

Browse files
byyuDapukeithbusch
authored andcommitted
nvme: fix NVME_NS_DEAC may incorrectly identifying the disk as EXT_LBA.
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 1b96f86 ("nvme: implement the DEAC bit for the Write Zeroes command") Signed-off-by: Boyang Yu <[email protected]> Reviewed-by: Kanchan Joshi <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 5f75e08 commit 9570a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/nvme.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ static inline bool nvme_ns_head_multipath(struct nvme_ns_head *head)
502502
enum nvme_ns_features {
503503
NVME_NS_EXT_LBAS = 1 << 0, /* support extended LBA format */
504504
NVME_NS_METADATA_SUPPORTED = 1 << 1, /* support getting generated md */
505-
NVME_NS_DEAC, /* DEAC bit in Write Zeores supported */
505+
NVME_NS_DEAC = 1 << 2, /* DEAC bit in Write Zeores supported */
506506
};
507507

508508
struct nvme_ns {

0 commit comments

Comments
 (0)