aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_hbadisc.c
diff options
context:
space:
mode:
authorJames Smart <James.Smart@Emulex.Com>2009-11-18 15:40:23 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:01:51 -0500
commit891478a2442d8d0077651bc8316afaec8d85dd4d (patch)
tree9758bf87edbf4446ceb2fcce20fcebb1ae31fbfb /drivers/scsi/lpfc/lpfc_hbadisc.c
parent5ffc266ee7a62741ebee89ede15049ec0f02fa75 (diff)
[SCSI] lpfc 8.3.6 : Fix AER issues
Fix AER issues. - Made AER sysfs entry point return "Operation not permitted" to OneConnect HBAs - Stop and abort all I/Os on HBA for AER uncorrectable non-fatal error handling 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-x[-rw-r--r--]drivers/scsi/lpfc/lpfc_hbadisc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 3c06aa54a3e..4d7d8846b4d 100644..100755
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -4369,6 +4369,14 @@ lpfc_fcf_inuse(struct lpfc_hba *phba)
4369 ret = 1; 4369 ret = 1;
4370 spin_unlock_irq(shost->host_lock); 4370 spin_unlock_irq(shost->host_lock);
4371 goto out; 4371 goto out;
4372 } else {
4373 lpfc_printf_log(phba, KERN_INFO, LOG_ELS,
4374 "2624 RPI %x DID %x flg %x still "
4375 "logged in\n",
4376 ndlp->nlp_rpi, ndlp->nlp_DID,
4377 ndlp->nlp_flag);
4378 if (ndlp->nlp_flag & NLP_RPI_VALID)
4379 ret = 1;
4372 } 4380 }
4373 } 4381 }
4374 spin_unlock_irq(shost->host_lock); 4382 spin_unlock_irq(shost->host_lock);
@@ -4465,7 +4473,7 @@ lpfc_unregister_unused_fcf(struct lpfc_hba *phba)
4465 (phba->sli3_options & LPFC_SLI3_NPIV_ENABLED)) 4473 (phba->sli3_options & LPFC_SLI3_NPIV_ENABLED))
4466 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { 4474 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
4467 lpfc_mbx_unreg_vpi(vports[i]); 4475 lpfc_mbx_unreg_vpi(vports[i]);
4468 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI; 4476 vports[i]->fc_flag |= FC_VPORT_NEEDS_INIT_VPI;
4469 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED; 4477 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED;
4470 } 4478 }
4471 lpfc_destroy_vport_work_array(phba, vports); 4479 lpfc_destroy_vport_work_array(phba, vports);