[SCSI] lpfc 8.3.32: Fix system panic due to node state change
authorJames Smart <james.smart@emulex.com>
Tue, 12 Jun 2012 17:54:59 +0000 (13:54 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 20 Jul 2012 07:58:29 +0000 (08:58 +0100)
Fix System Panic During IO Test using Medusa tool

Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_scsi.c

index 169b77b82b487c8cea694793c493ddfa1330c5a5..925975d2d76579359ebe4181141f6e077e384f33 100644 (file)
@@ -4275,10 +4275,8 @@ lpfc_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done) (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;