Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178818
b: refs/heads/master
c: aacc20e
h: refs/heads/master
v: v3
  • Loading branch information
James Smart authored and James Bottomley committed Jan 4, 2010
1 parent 702429c commit 5325691
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: def9c7a994f194377a23e687e6fd39b46c3ce631
refs/heads/master: aacc20e35edfb86cf66c5ee8d9f3d06a98362fd1
4 changes: 4 additions & 0 deletions trunk/drivers/scsi/lpfc/lpfc_hbadisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/lpfc/lpfc_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -7226,8 +7226,6 @@ lpfc_prep_dev_for_perm_failure(struct lpfc_hba *phba)
{
lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
"2711 PCI channel permanent disable for failure\n");
/* Block all SCSI devices' I/Os on the host */
lpfc_scsi_dev_block(phba);
/* Clean up all driver's outstanding SCSI I/Os */
lpfc_sli_flush_fcp_rings(phba);
}
Expand Down Expand Up @@ -7256,6 +7254,9 @@ lpfc_io_error_detected_s3(struct pci_dev *pdev, pci_channel_state_t state)
struct Scsi_Host *shost = pci_get_drvdata(pdev);
struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;

/* Block all SCSI devices' I/Os on the host */
lpfc_scsi_dev_block(phba);

switch (state) {
case pci_channel_io_normal:
/* Non-fatal error, prepare for recovery */
Expand Down

0 comments on commit 5325691

Please sign in to comment.