diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_ct.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_ct.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c index 48ae2355de69..af819885213d 100644 --- a/drivers/scsi/lpfc/lpfc_ct.c +++ b/drivers/scsi/lpfc/lpfc_ct.c | |||
@@ -443,10 +443,8 @@ lpfc_cmpl_ct_cmd_gid_ft(struct lpfc_hba * phba, struct lpfc_iocbq * cmdiocb, | |||
443 | if (phba->fc_ns_retry < LPFC_MAX_NS_RETRY) { | 443 | if (phba->fc_ns_retry < LPFC_MAX_NS_RETRY) { |
444 | phba->fc_ns_retry++; | 444 | phba->fc_ns_retry++; |
445 | /* CT command is being retried */ | 445 | /* CT command is being retried */ |
446 | ndlp = | 446 | ndlp = lpfc_findnode_did(phba, NameServer_DID); |
447 | lpfc_findnode_did(phba, NLP_SEARCH_UNMAPPED, | 447 | if (ndlp && ndlp->nlp_state == NLP_STE_UNMAPPED_NODE) { |
448 | NameServer_DID); | ||
449 | if (ndlp) { | ||
450 | if (lpfc_ns_cmd(phba, ndlp, SLI_CTNS_GID_FT) == | 448 | if (lpfc_ns_cmd(phba, ndlp, SLI_CTNS_GID_FT) == |
451 | 0) { | 449 | 0) { |
452 | goto out; | 450 | goto out; |
@@ -730,7 +728,7 @@ lpfc_cmpl_ct_cmd_fdmi(struct lpfc_hba * phba, | |||
730 | uint16_t fdmi_cmd = CTcmd->CommandResponse.bits.CmdRsp; | 728 | uint16_t fdmi_cmd = CTcmd->CommandResponse.bits.CmdRsp; |
731 | uint16_t fdmi_rsp = CTrsp->CommandResponse.bits.CmdRsp; | 729 | uint16_t fdmi_rsp = CTrsp->CommandResponse.bits.CmdRsp; |
732 | 730 | ||
733 | ndlp = lpfc_findnode_did(phba, NLP_SEARCH_ALL, FDMI_DID); | 731 | ndlp = lpfc_findnode_did(phba, FDMI_DID); |
734 | if (fdmi_rsp == be16_to_cpu(SLI_CT_RESPONSE_FS_RJT)) { | 732 | if (fdmi_rsp == be16_to_cpu(SLI_CT_RESPONSE_FS_RJT)) { |
735 | /* FDMI rsp failed */ | 733 | /* FDMI rsp failed */ |
736 | lpfc_printf_log(phba, | 734 | lpfc_printf_log(phba, |
@@ -1162,7 +1160,7 @@ lpfc_fdmi_tmo_handler(struct lpfc_hba *phba) | |||
1162 | { | 1160 | { |
1163 | struct lpfc_nodelist *ndlp; | 1161 | struct lpfc_nodelist *ndlp; |
1164 | 1162 | ||
1165 | ndlp = lpfc_findnode_did(phba, NLP_SEARCH_ALL, FDMI_DID); | 1163 | ndlp = lpfc_findnode_did(phba, FDMI_DID); |
1166 | if (ndlp) { | 1164 | if (ndlp) { |
1167 | if (init_utsname()->nodename[0] != '\0') { | 1165 | if (init_utsname()->nodename[0] != '\0') { |
1168 | lpfc_fdmi_cmd(phba, ndlp, SLI_MGMT_DHBA); | 1166 | lpfc_fdmi_cmd(phba, ndlp, SLI_MGMT_DHBA); |