* [PATCH 4/15] lpfc 8.1.7 : Fixed infinite retry of REG_LOGIN mailbox failed due to MBXERR_RPI_FULL
@ 2006-07-06 19:49 James Smart
0 siblings, 0 replies; only message in thread
From: James Smart @ 2006-07-06 19:49 UTC (permalink / raw)
To: linux-scsi
Fixed infinite retry of REG_LOGIN mailbox failed due to MBXERR_RPI_FULL
Signed-off-by: James Smart <James.Smart@emulex.com>
diff -upNr a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_nportdisc.c
--- a/drivers/scsi/lpfc/lpfc_nportdisc.c 2006-07-05 14:49:02.000000000 -0400
+++ b/drivers/scsi/lpfc/lpfc_nportdisc.c 2006-07-06 14:47:43.000000000 -0400
@@ -1110,6 +1110,17 @@ lpfc_cmpl_reglogin_reglogin_issue(struct
phba->brd_no,
did, mb->mbxStatus, phba->hba_state);
+ /*
+ * If RegLogin failed due to lack of HBA resources do not
+ * retry discovery.
+ */
+ if (mb->mbxStatus == MBXERR_RPI_FULL) {
+ ndlp->nlp_prev_state = NLP_STE_UNUSED_NODE;
+ ndlp->nlp_state = NLP_STE_UNUSED_NODE;
+ lpfc_nlp_list(phba, ndlp, NLP_UNUSED_LIST);
+ return ndlp->nlp_state;
+ }
+
/* Put ndlp in npr list set plogi timer for 1 sec */
mod_timer(&ndlp->nlp_delayfunc, jiffies + HZ * 1);
spin_lock_irq(phba->host->host_lock);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-06 19:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-06 19:49 [PATCH 4/15] lpfc 8.1.7 : Fixed infinite retry of REG_LOGIN mailbox failed due to MBXERR_RPI_FULL James Smart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox