Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55201
b: refs/heads/master
c: 8208571
h: refs/heads/master
i:
  55199: 1c12c45
v: v3
  • Loading branch information
James Smart authored and James Bottomley committed May 6, 2007
1 parent df3cdb3 commit d0a3737
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7054a606e6724674a5acd103ed74eacb02c73393
refs/heads/master: 82085718faa6955c8a78b2e6ac2ad95072ac875a
8 changes: 5 additions & 3 deletions trunk/drivers/scsi/lpfc/lpfc_hbadisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ lpfc_dev_loss_tmo_callbk(struct fc_rport *rport)
return;
}

if (ndlp->nlp_state == NLP_STE_MAPPED_NODE)
return;

name = (uint8_t *)&ndlp->nlp_portname;
phba = ndlp->nlp_phba;

Expand Down Expand Up @@ -149,7 +152,8 @@ lpfc_dev_loss_tmo_callbk(struct fc_rport *rport)

if (!(phba->fc_flag & FC_UNLOADING) &&
!(ndlp->nlp_flag & NLP_DELAY_TMO) &&
!(ndlp->nlp_flag & NLP_NPR_2B_DISC))
!(ndlp->nlp_flag & NLP_NPR_2B_DISC) &&
(ndlp->nlp_state != NLP_STE_UNMAPPED_NODE))
lpfc_disc_state_machine(phba, ndlp, NULL, NLP_EVT_DEVICE_RM);
else {
rdata->pnode = NULL;
Expand Down Expand Up @@ -1326,8 +1330,6 @@ lpfc_nlp_state_cleanup(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp,
* already. If we have, and it's a scsi entity, be
* sure to unblock any attached scsi devices
*/
if (!ndlp->rport ||
ndlp->rport->port_state == FC_PORTSTATE_BLOCKED)
lpfc_register_remote_port(phba, ndlp);
}

Expand Down

0 comments on commit d0a3737

Please sign in to comment.