[SRU][Bionic][PATCH 1/1] nvme: Use admin command effects for admin commands
Joseph Salisbury
joseph.salisbury at canonical.com
Tue Jan 8 19:57:50 UTC 2019
From: Keith Busch <keith.busch at intel.com>
BugLink: https://bugs.launchpad.net/bugs/1797587
Signed-off-by: Keith Busch <keith.busch at intel.com>
Signed-off-by: Jens Axboe <axboe at kernel.dk>
(cherry picked from commit 62843c2e4226057c83f520c74fe9c81a1891c331)
Signed-off-by: Joseph Salisbury <joseph.salisbury at canonical.com>
---
drivers/nvme/host/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index c5dfca8..42f6202 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -1054,7 +1054,7 @@ static u32 nvme_passthru_start(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
}
if (ctrl->effects)
- effects = le32_to_cpu(ctrl->effects->iocs[opcode]);
+ effects = le32_to_cpu(ctrl->effects->acs[opcode]);
else
effects = nvme_known_admin_effects(opcode);
--
2.7.4
More information about the kernel-team
mailing list