From: Hannes Reinecke Date: Fri, 25 Aug 2017 11:57:00 +0000 (+0200) Subject: scsi: fnic: do not call host reset from command abort X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c3a50bb9b6ec289126085ccfe205ed0cc3c0a85;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen --- 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; }