diff options
author | James Smart <james.smart@emulex.com> | 2009-12-21 23:02:00 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-01-04 18:39:43 +0100 |
commit | 1987807d4a7f52ca86034865283b207ab9be79c8 (patch) | |
tree | 7eacfab124bce1ca9a55a77465142c68a17389aa /drivers/scsi/lpfc/lpfc_vport.c | |
parent | [SCSI] lpfc 8.3.7: Fix FC protocol errors (diff) | |
download | linux-1987807d4a7f52ca86034865283b207ab9be79c8.tar.xz linux-1987807d4a7f52ca86034865283b207ab9be79c8.zip |
[SCSI] lpfc 8.3.7: Fix NPIV operation errors
Fix NPIV operation errors:
- Fix vport not logging out of fabric when being deleted
- Fix vport fails to discover targets after devloss timeout.
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_vport.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_vport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_vport.c b/drivers/scsi/lpfc/lpfc_vport.c index 7d6dd83d3592..c3a70c4c9433 100644 --- a/drivers/scsi/lpfc/lpfc_vport.c +++ b/drivers/scsi/lpfc/lpfc_vport.c @@ -700,7 +700,7 @@ lpfc_vport_delete(struct fc_vport *fc_vport) } spin_unlock_irq(&phba->ndlp_lock); } - if (vport->vpi_state != LPFC_VPI_REGISTERED) + if (!(vport->vpi_state & LPFC_VPI_REGISTERED)) goto skip_logo; vport->unreg_vpi_cmpl = VPORT_INVAL; timeout = msecs_to_jiffies(phba->fc_ratov * 2000); |