diff options
author | James Smart <james.smart@emulex.com> | 2010-03-15 11:24:56 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-11 10:23:47 -0400 |
commit | 999d813f227435c35b44362ee82211a1458844fc (patch) | |
tree | ba5c1ab8169b8156a59b6484cd032ce3b873dfa8 /drivers/scsi/lpfc/lpfc_els.c | |
parent | 65c054f235fda2d545ecd2a7948906a3cf0c1f39 (diff) |
[SCSI] lpfc 8.3.11: FCF failover improvements
FCF failover improvements
- Add random FCF failover when there are multiple FCFs available.
- Prevent FCF log messages from being displayed for FC adapters.
- Separate the New FCF and Modified FCF log messages.
Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
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_els.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 5fbdb22c1899..0a337dab211c 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c | |||
@@ -893,11 +893,14 @@ lpfc_cmpl_els_flogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
893 | 893 | ||
894 | if (!rc) { | 894 | if (!rc) { |
895 | /* Mark the FCF discovery process done */ | 895 | /* Mark the FCF discovery process done */ |
896 | lpfc_printf_vlog(vport, KERN_INFO, LOG_FIP | LOG_ELS, | 896 | if (phba->hba_flag & HBA_FIP_SUPPORT) |
897 | "2769 FLOGI successful on FCF record: " | 897 | lpfc_printf_vlog(vport, KERN_INFO, LOG_FIP | |
898 | "current_fcf_index:x%x, terminate FCF " | 898 | LOG_ELS, |
899 | "round robin failover process\n", | 899 | "2769 FLOGI successful on FCF " |
900 | phba->fcf.current_rec.fcf_indx); | 900 | "record: current_fcf_index:" |
901 | "x%x, terminate FCF round " | ||
902 | "robin failover process\n", | ||
903 | phba->fcf.current_rec.fcf_indx); | ||
901 | spin_lock_irq(&phba->hbalock); | 904 | spin_lock_irq(&phba->hbalock); |
902 | phba->fcf.fcf_flag &= ~FCF_DISCOVERY; | 905 | phba->fcf.fcf_flag &= ~FCF_DISCOVERY; |
903 | spin_unlock_irq(&phba->hbalock); | 906 | spin_unlock_irq(&phba->hbalock); |