aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/lpfc/lpfc_nportdisc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_nportdisc.c
index e7470a4738c5..421356eabc22 100644
--- a/drivers/scsi/lpfc/lpfc_nportdisc.c
+++ b/drivers/scsi/lpfc/lpfc_nportdisc.c
@@ -950,8 +950,13 @@ lpfc_cmpl_adisc_adisc_issue(struct lpfc_hba * phba,
950 lpfc_unreg_rpi(phba, ndlp); 950 lpfc_unreg_rpi(phba, ndlp);
951 return (ndlp->nlp_state); 951 return (ndlp->nlp_state);
952 } 952 }
953 ndlp->nlp_state = NLP_STE_MAPPED_NODE; 953 if (ndlp->nlp_type & NLP_FCP_TARGET) {
954 lpfc_nlp_list(phba, ndlp, NLP_MAPPED_LIST); 954 ndlp->nlp_state = NLP_STE_MAPPED_NODE;
955 lpfc_nlp_list(phba, ndlp, NLP_MAPPED_LIST);
956 } else {
957 ndlp->nlp_state = NLP_STE_UNMAPPED_NODE;
958 lpfc_nlp_list(phba, ndlp, NLP_UNMAPPED_LIST);
959 }
955 return (ndlp->nlp_state); 960 return (ndlp->nlp_state);
956} 961}
957 962