Skip to contentSkip to conversation

lpfc 8.3.32: Fix system panic due to node state change

PATCH New James Smart 1 participant 1 message Jun 12, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 8/10 lpfc 8.3.32: Fix system panic due to node state change

Fix System Panic During IO Test using Medusa tool

---

 lpfc_scsi.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/scsi/lpfc/lpfc_scsi.c +2 -4
diff -upNr a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -4275,10 +4275,8 @@ lpfc_queuecommand_lck(struct scsi_cmnd *
 	 * Catch race where our node has transitioned, but the
 	 * transport is still transitioning.
 	 */
-	if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) {
-		cmnd->result = ScsiResult(DID_IMM_RETRY, 0);
-		goto out_fail_command;
-	}
+	if (!ndlp || !NLP_CHK_NODE_ACT(ndlp))
+		goto out_tgt_busy;
 	if (atomic_read(&ndlp->cmd_pending) >= ndlp->cmd_qdepth)
 		goto out_tgt_busy;