diff options
author | Keith Busch <keith.busch@intel.com> | 2018-04-12 11:16:14 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-04-12 11:58:27 -0400 |
commit | 62843c2e4226057c83f520c74fe9c81a1891c331 (patch) | |
tree | 93b4f8f2d68caa93d24f630860b6cb8b3bf8a9f3 | |
parent | c73996984902516745bc587d5e8a0b2e034aea05 (diff) |
nvme: Use admin command effects for admin commands
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/nvme/host/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index b09940c556d0..aac3c1d2b2a2 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c | |||
@@ -1102,7 +1102,7 @@ static u32 nvme_passthru_start(struct nvme_ctrl *ctrl, struct nvme_ns *ns, | |||
1102 | } | 1102 | } |
1103 | 1103 | ||
1104 | if (ctrl->effects) | 1104 | if (ctrl->effects) |
1105 | effects = le32_to_cpu(ctrl->effects->iocs[opcode]); | 1105 | effects = le32_to_cpu(ctrl->effects->acs[opcode]); |
1106 | else | 1106 | else |
1107 | effects = nvme_known_admin_effects(opcode); | 1107 | effects = nvme_known_admin_effects(opcode); |
1108 | 1108 | ||