]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] qla4xxx: return SCSI_MLQUEUE_TARGET_BUSY when driver has detected session...
authorMike Christie <michaelc@cs.wisc.edu>
Sun, 17 Aug 2008 20:24:39 +0000 (15:24 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 13 Oct 2008 13:28:46 +0000 (09:28 -0400)
When qla4xxx begins recovery and the iscsi class is firing up to handle
it, we need to retrn SCSI_MLQUEUE_TARGET_BUSY from the driver instead
of host busy, because the session recovery only affects the one target.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Acked-by: David C Somayajulu <david.somayajulu@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/qla4xxx/ql4_os.c

index de8279ad7d89dca83cc1e32e2f8fc5d091d7b3fb..4255b36ff968ca26d7f98d991b45852fb6e7a7d8 100644 (file)
@@ -439,7 +439,7 @@ static int qla4xxx_queuecommand(struct scsi_cmnd *cmd,
                        cmd->result = DID_NO_CONNECT << 16;
                        goto qc_fail_command;
                }
-               goto qc_host_busy;
+               return SCSI_MLQUEUE_TARGET_BUSY;
        }
 
        if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags))