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>
This commit is contained in:
Keith Busch 2018-04-12 09:16:14 -06:00 committed by Jens Axboe
parent c739969849
commit 62843c2e42
1 changed files with 1 additions and 1 deletions

View File

@ -1102,7 +1102,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);