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 b09940c556d05b57d21b323be68fbd39bd16aa5b..aac3c1d2b2a2b69f9b9b34572ae49fae7d447010 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);