diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index 7801601aa5d9..883ea2d9f237 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c | |||
@@ -4171,8 +4171,6 @@ lpfc_initialize_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, | |||
4171 | NLP_INT_NODE_ACT(ndlp); | 4171 | NLP_INT_NODE_ACT(ndlp); |
4172 | atomic_set(&ndlp->cmd_pending, 0); | 4172 | atomic_set(&ndlp->cmd_pending, 0); |
4173 | ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth; | 4173 | ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth; |
4174 | if (vport->phba->sli_rev == LPFC_SLI_REV4) | ||
4175 | ndlp->nlp_rpi = lpfc_sli4_alloc_rpi(vport->phba); | ||
4176 | } | 4174 | } |
4177 | 4175 | ||
4178 | struct lpfc_nodelist * | 4176 | struct lpfc_nodelist * |
@@ -4217,6 +4215,9 @@ lpfc_enable_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, | |||
4217 | lpfc_initialize_node(vport, ndlp, did); | 4215 | lpfc_initialize_node(vport, ndlp, did); |
4218 | 4216 | ||
4219 | spin_unlock_irqrestore(&phba->ndlp_lock, flags); | 4217 | spin_unlock_irqrestore(&phba->ndlp_lock, flags); |
4218 | if (vport->phba->sli_rev == LPFC_SLI_REV4) | ||
4219 | ndlp->nlp_rpi = lpfc_sli4_alloc_rpi(vport->phba); | ||
4220 | |||
4220 | 4221 | ||
4221 | if (state != NLP_STE_UNUSED_NODE) | 4222 | if (state != NLP_STE_UNUSED_NODE) |
4222 | lpfc_nlp_set_state(vport, ndlp, state); | 4223 | lpfc_nlp_set_state(vport, ndlp, state); |
@@ -5617,6 +5618,9 @@ lpfc_nlp_init(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, | |||
5617 | 5618 | ||
5618 | lpfc_initialize_node(vport, ndlp, did); | 5619 | lpfc_initialize_node(vport, ndlp, did); |
5619 | INIT_LIST_HEAD(&ndlp->nlp_listp); | 5620 | INIT_LIST_HEAD(&ndlp->nlp_listp); |
5621 | if (vport->phba->sli_rev == LPFC_SLI_REV4) | ||
5622 | ndlp->nlp_rpi = lpfc_sli4_alloc_rpi(vport->phba); | ||
5623 | |||
5620 | 5624 | ||
5621 | lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE, | 5625 | lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE, |
5622 | "node init: did:x%x", | 5626 | "node init: did:x%x", |