summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Reinecke2017-08-25 13:57:00 +0200
committerMartin K. Petersen2017-08-25 23:21:10 +0200
commit7c3a50bb9b6ec289126085ccfe205ed0cc3c0a85 (patch)
tree33b4eaca983344c088e43840a7d664e67e4653f4
parentscsi: fc_fcp: do not call fc_block_scsi_eh() from host reset (diff)
downloadkernel-qcow2-linux-7c3a50bb9b6ec289126085ccfe205ed0cc3c0a85.tar.gz
kernel-qcow2-linux-7c3a50bb9b6ec289126085ccfe205ed0cc3c0a85.tar.xz
kernel-qcow2-linux-7c3a50bb9b6ec289126085ccfe205ed0cc3c0a85.zip
scsi: fnic: do not call host reset from command abort
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>
-rw-r--r--drivers/scsi/fnic/fnic_scsi.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/scsi/fnic/fnic_scsi.c b/drivers/scsi/fnic/fnic_scsi.c
index 6c0646d62dfb..242e2ee494a1 100644
--- a/drivers/scsi/fnic/fnic_scsi.c
+++ b/drivers/scsi/fnic/fnic_scsi.c
@@ -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;
}