diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index 678a4b11059c..343d87ba4df8 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c | |||
@@ -2977,9 +2977,9 @@ lpfc_mbx_process_link_up(struct lpfc_hba *phba, struct lpfc_mbx_read_top *la) | |||
2977 | "topology\n"); | 2977 | "topology\n"); |
2978 | /* Get Loop Map information */ | 2978 | /* Get Loop Map information */ |
2979 | if (bf_get(lpfc_mbx_read_top_il, la)) { | 2979 | if (bf_get(lpfc_mbx_read_top_il, la)) { |
2980 | spin_lock_irq(shost->host_lock); | 2980 | spin_lock(shost->host_lock); |
2981 | vport->fc_flag |= FC_LBIT; | 2981 | vport->fc_flag |= FC_LBIT; |
2982 | spin_unlock_irq(shost->host_lock); | 2982 | spin_unlock(shost->host_lock); |
2983 | } | 2983 | } |
2984 | 2984 | ||
2985 | vport->fc_myDID = bf_get(lpfc_mbx_read_top_alpa_granted, la); | 2985 | vport->fc_myDID = bf_get(lpfc_mbx_read_top_alpa_granted, la); |
@@ -3029,9 +3029,9 @@ lpfc_mbx_process_link_up(struct lpfc_hba *phba, struct lpfc_mbx_read_top *la) | |||
3029 | phba->sli3_options |= LPFC_SLI3_NPIV_ENABLED; | 3029 | phba->sli3_options |= LPFC_SLI3_NPIV_ENABLED; |
3030 | } | 3030 | } |
3031 | vport->fc_myDID = phba->fc_pref_DID; | 3031 | vport->fc_myDID = phba->fc_pref_DID; |
3032 | spin_lock_irq(shost->host_lock); | 3032 | spin_lock(shost->host_lock); |
3033 | vport->fc_flag |= FC_LBIT; | 3033 | vport->fc_flag |= FC_LBIT; |
3034 | spin_unlock_irq(shost->host_lock); | 3034 | spin_unlock(shost->host_lock); |
3035 | } | 3035 | } |
3036 | spin_unlock_irq(&phba->hbalock); | 3036 | spin_unlock_irq(&phba->hbalock); |
3037 | 3037 | ||
@@ -5332,6 +5332,10 @@ lpfc_filter_by_rpi(struct lpfc_nodelist *ndlp, void *param) | |||
5332 | { | 5332 | { |
5333 | uint16_t *rpi = param; | 5333 | uint16_t *rpi = param; |
5334 | 5334 | ||
5335 | /* check for active node */ | ||
5336 | if (!NLP_CHK_NODE_ACT(ndlp)) | ||
5337 | return 0; | ||
5338 | |||
5335 | return ndlp->nlp_rpi == *rpi; | 5339 | return ndlp->nlp_rpi == *rpi; |
5336 | } | 5340 | } |
5337 | 5341 | ||