nvme: Use admin command effects for admin commands
authorKeith Busch <keith.busch@intel.com>
Thu, 12 Apr 2018 15:16:14 +0000 (09:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Apr 2018 15:58:27 +0000 (09:58 -0600)
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c

index b09940c..aac3c1d 100644 (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);