scsi: mpt3sas: Incorrect command status was set/marked as not used.
authorChaitra P B <chaitra.basappa@broadcom.com>
Thu, 31 May 2018 10:34:48 +0000 (06:34 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Jun 2018 01:05:32 +0000 (21:05 -0400)
In _scsih_scan_finished driver should mark port_enable_cmd.status as
'command not used', instead base_cmds.status was marked as 'command not
used'. Update code to mark port_enable_cmd.status as 'command not used'.

Signed-off-by: Chaitra P B <chaitra.basappa@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_scsih.c

index d31f0ccdf688f1536e1aeb5aa925b84dfcf5f9ef..884878b2113d3e972d583bfa2a05f8be1f5de6f7 100644 (file)
@@ -10394,7 +10394,7 @@ scsih_scan_finished(struct Scsi_Host *shost, unsigned long time)
        }
 
        if (time >= (300 * HZ)) {
-               ioc->base_cmds.status = MPT3_CMD_NOT_USED;
+               ioc->port_enable_cmds.status = MPT3_CMD_NOT_USED;
                pr_info(MPT3SAS_FMT
                        "port enable: FAILED with timeout (timeout=300s)\n",
                        ioc->name);
@@ -10416,7 +10416,7 @@ scsih_scan_finished(struct Scsi_Host *shost, unsigned long time)
        }
 
        pr_info(MPT3SAS_FMT "port enable: SUCCESS\n", ioc->name);
-       ioc->base_cmds.status = MPT3_CMD_NOT_USED;
+       ioc->port_enable_cmds.status = MPT3_CMD_NOT_USED;
 
        if (ioc->wait_for_discovery_to_complete) {
                ioc->wait_for_discovery_to_complete = 0;