summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_scsi.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2013-09-06 18:22:13 +0200
committerJames Bottomley <JBottomley@Parallels.com>2013-09-11 02:31:02 +0200
commitafbd8d8884325bcc4fc4c12fcb2eccbf9356feca (patch)
tree18187f53233147569fdb403751dc1e891417e9bf /drivers/scsi/lpfc/lpfc_scsi.c
parent[SCSI] lpfc 8.3.42: Fixed failure to allocate SCSI buffer on PPC64 platform f... (diff)
downloadlinux-afbd8d8884325bcc4fc4c12fcb2eccbf9356feca.tar.xz
linux-afbd8d8884325bcc4fc4c12fcb2eccbf9356feca.zip
[SCSI] lpfc 8.3.42: Fix driver's abort loop functionality to skip IOs already getting aborted
Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 9480c55963ea..c0117dd4b9cc 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -4886,6 +4886,9 @@ lpfc_abort_handler(struct scsi_cmnd *cmnd)
goto out_unlock;
}
+ /* Indicate the IO is being aborted by the driver. */
+ iocb->iocb_flag |= LPFC_DRIVER_ABORTED;
+
/*
* The scsi command can not be in txq and it is in flight because the
* pCmd is still pointig at the SCSI command we have to abort. There