aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_hbadisc.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2009-12-21 17:02:51 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-01-04 11:39:45 -0600
commitaacc20e35edfb86cf66c5ee8d9f3d06a98362fd1 (patch)
treefeced0764c142d9c7de4f94cd2724bf54e97dfbe /drivers/scsi/lpfc/lpfc_hbadisc.c
parentdef9c7a994f194377a23e687e6fd39b46c3ce631 (diff)
downloadkernel_samsung_smdk4412-aacc20e35edfb86cf66c5ee8d9f3d06a98362fd1.zip
kernel_samsung_smdk4412-aacc20e35edfb86cf66c5ee8d9f3d06a98362fd1.tar.gz
kernel_samsung_smdk4412-aacc20e35edfb86cf66c5ee8d9f3d06a98362fd1.tar.bz2
[SCSI] lpfc 8.3.7: Fix SCSI protocol related errors.
Fix SCSI protocol related errors: - Avoid I/O failures during EEH and HBA/CNA reset by correcting when we block the targets on the adapter. Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rwxr-xr-xdrivers/scsi/lpfc/lpfc_hbadisc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index f40b960..1c27372 100755
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -747,6 +747,10 @@ lpfc_linkdown(struct lpfc_hba *phba)
if (phba->link_state == LPFC_LINK_DOWN)
return 0;
+
+ /* Block all SCSI stack I/Os */
+ lpfc_scsi_dev_block(phba);
+
spin_lock_irq(&phba->hbalock);
phba->fcf.fcf_flag &= ~(FCF_AVAILABLE | FCF_DISCOVERED);
if (phba->link_state > LPFC_LINK_DOWN) {