summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorJames.Smart@Emulex.Com2005-11-28 17:41:33 +0100
committerJames Bottomley2005-12-14 02:16:01 +0100
commit6281bfe0002acd7765cb4afe0304c36962ad6b15 (patch)
treef67190c5ed4032dc501a07b5df233c2071892d67 /drivers/scsi/lpfc/lpfc_init.c
parent[SCSI] lpfc 8.1.1 : Correct some 8bit to 16bit field conversions/comparisons (diff)
downloadkernel-qcow2-linux-6281bfe0002acd7765cb4afe0304c36962ad6b15.tar.gz
kernel-qcow2-linux-6281bfe0002acd7765cb4afe0304c36962ad6b15.tar.xz
kernel-qcow2-linux-6281bfe0002acd7765cb4afe0304c36962ad6b15.zip
[SCSI] lpfc 8.1.1 : Fixes for short cable pulls
Cause: Link bounces were causing discovery ELS's to be killed. Driver was not properly flushing ELS commands upon the subsequent link bounces. Thus, processing of ELS post link bounce erroneously assumed discovery failure and device loss. Signed-off-by: James Smart <James.Smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 3eebe663a2e5..4d4e217edd84 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -563,6 +563,8 @@ lpfc_handle_latt(struct lpfc_hba * phba)
rc = -EIO;
+ /* Cleanup any outstanding ELS commands */
+ lpfc_els_flush_cmd(phba);
psli->slistat.link_event++;
lpfc_read_la(phba, pmb, mp);