scsi: fnic: do not call host reset from command abort
authorHannes Reinecke <hare@suse.de>
Fri, 25 Aug 2017 11:57:00 +0000 (13:57 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 21:21:10 +0000 (17:21 -0400)
Command abort already returns FAILED, which will then be escalated to a
host reset. So no need to call host_reset directly.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_scsi.c

index 6c0646d62dfb3344c09b7b4d32b1f922557266d3..242e2ee494a1cafc2987a133534445da90f71cf8 100644 (file)
@@ -1990,10 +1990,6 @@ int fnic_abort_cmd(struct scsi_cmnd *sc)
                FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
                        "Issuing Host reset due to out of order IO\n");
 
-               if (fnic_host_reset(sc) == FAILED) {
-                       FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
-                               "fnic_host_reset failed.\n");
-               }
                ret = FAILED;
                goto fnic_abort_cmd_end;
        }