From: Mike Christie Date: Sun, 17 Aug 2008 20:24:39 +0000 (-0500) Subject: [SCSI] qla4xxx: return SCSI_MLQUEUE_TARGET_BUSY when driver has detected session... X-Git-Tag: v2.6.28-rc1~263^2~37 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c5e98e912c5423a0ec2eed7aa1064578d44f8a8e;p=karo-tx-linux.git [SCSI] qla4xxx: return SCSI_MLQUEUE_TARGET_BUSY when driver has detected session error 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 Acked-by: David C Somayajulu Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index de8279ad7d89..4255b36ff968 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -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))