diff options
author | James Smart <james.smart@emulex.com> | 2013-03-01 21:35:38 (GMT) |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-04-09 22:07:39 (GMT) |
commit | ae05ebe3bec9b2cecb1c09461ba2fd0dbfa81abb (patch) | |
tree | a7ba32da1d9388df31485a1562f6b3057d614bfc /drivers/scsi/lpfc/lpfc_hbadisc.c | |
parent | 0e9bb8d79c52ca115f3fc4a692ca0dd6931e2eeb (diff) | |
download | linux-fsl-qoriq-ae05ebe3bec9b2cecb1c09461ba2fd0dbfa81abb.tar.xz |
[SCSI] lpfc 8.3.38: Fixed degraded performance after cable pulls
The service parameters for the VPI/RPIs were incorrect, resulting in
lower utilization
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index 915e1aa..6e74a75 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c @@ -2889,6 +2889,11 @@ lpfc_mbx_cmpl_reg_vfi(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) lpfc_vport_set_state(vport, FC_VPORT_FAILED); goto out_free_mem; } + + /* If the VFI is already registered, there is nothing else to do */ + if (vport->fc_flag & FC_VFI_REGISTERED) + goto out_free_mem; + /* The VPI is implicitly registered when the VFI is registered */ spin_lock_irq(shost->host_lock); vport->vpi_state |= LPFC_VPI_REGISTERED; |