public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 7/16] lpfc 8.1.12 : Fixed recovery of rport after race with dev_loss_tmo
@ 2007-04-25 13:52 James Smart
  0 siblings, 0 replies; only message in thread
From: James Smart @ 2007-04-25 13:52 UTC (permalink / raw)
  To: linux-scsi

Fixed recovery of rport after race with dev_loss_tmo

Signed-off-by: James Smart <James.Smart@emulex.com>

diff -upNr a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c	2007-04-24 11:12:41.000000000 -0400
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c	2007-04-24 11:12:42.000000000 -0400
@@ -109,6 +109,9 @@ lpfc_dev_loss_tmo_callbk(struct fc_rport
 		return;
 	}
 
+	if (ndlp->nlp_state == NLP_STE_MAPPED_NODE)
+		return;
+
 	name = (uint8_t *)&ndlp->nlp_portname;
 	phba = ndlp->nlp_phba;
 
@@ -149,7 +152,8 @@ lpfc_dev_loss_tmo_callbk(struct fc_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;
@@ -1326,8 +1330,6 @@ lpfc_nlp_state_cleanup(struct lpfc_hba *
 			 * 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);
 	}
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-25 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25 13:52 [PATCH 7/16] lpfc 8.1.12 : Fixed recovery of rport after race with dev_loss_tmo James Smart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox