scsi: ibmvfc: Do not call fc_block_scsi_eh() on host reset
authorHannes Reinecke <hare@suse.de>
Fri, 25 Aug 2017 11:56:58 +0000 (13:56 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 21:21:10 +0000 (17:21 -0400)
When we're resetting the host any remote port states will be reset
anyway, so it's pointless to wait for dev_loss_tmo during host reset.

Signed-off-by: Hannes Reinecke <hare@suse.de>
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/ibmvscsi/ibmvfc.c

index cc4e05be8d4a24aa01782a62ca2fd3d157d24777..51f52480bf344d204b317a7a1d813d67447491ef 100644 (file)
@@ -2528,16 +2528,12 @@ static int ibmvfc_eh_target_reset_handler(struct scsi_cmnd *cmd)
  **/
 static int ibmvfc_eh_host_reset_handler(struct scsi_cmnd *cmd)
 {
-       int rc, block_rc;
+       int rc;
        struct ibmvfc_host *vhost = shost_priv(cmd->device->host);
 
-       block_rc = fc_block_scsi_eh(cmd);
        dev_err(vhost->dev, "Resetting connection due to error recovery\n");
        rc = ibmvfc_issue_fc_host_lip(vhost->host);
 
-       if (block_rc == FAST_IO_FAIL)
-               return FAST_IO_FAIL;
-
        return rc ? FAILED : SUCCESS;
 }