Skip to content

Commit 85eee63

Browse files
keithbuschChristoph Hellwig
authored andcommitted
nvme: fix passthrough csi check
The namespace head saves the Command Set Indicator enum, so use that instead of the Command Set Selected. The two values are not the same. Fixes: 831ed60 ("nvme: also return I/O command effects from nvme_command_effects") Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 5a5754a commit 85eee63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u8 opcode)
10931093
if (ns) {
10941094
if (ns->head->effects)
10951095
effects = le32_to_cpu(ns->head->effects->iocs[opcode]);
1096-
if (ns->head->ids.csi == NVME_CAP_CSS_NVM)
1096+
if (ns->head->ids.csi == NVME_CSI_NVM)
10971097
effects |= nvme_known_nvm_effects(opcode);
10981098
if (effects & ~(NVME_CMD_EFFECTS_CSUPP | NVME_CMD_EFFECTS_LBCC))
10991099
dev_warn_once(ctrl->device,

0 commit comments

Comments
 (0)