aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 15e747faaa5f..4be506a33a2e 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -753,6 +753,10 @@ lpfc_queuecommand(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *))
753 cmnd->result = ScsiResult(DID_NO_CONNECT, 0); 753 cmnd->result = ScsiResult(DID_NO_CONNECT, 0);
754 goto out_fail_command; 754 goto out_fail_command;
755 } 755 }
756 else if (ndlp->nlp_state == NLP_STE_NPR_NODE) {
757 cmnd->result = ScsiResult(DID_BUS_BUSY, 0);
758 goto out_fail_command;
759 }
756 /* 760 /*
757 * The device is most likely recovered and the driver 761 * The device is most likely recovered and the driver
758 * needs a bit more time to finish. Ask the midlayer 762 * needs a bit more time to finish. Ask the midlayer