Skip to content

Commit

Permalink
[SCSI] qla4xxx: return SCSI_MLQUEUE_TARGET_BUSY when driver has detec…
Browse files Browse the repository at this point in the history
…ted 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 <michaelc@cs.wisc.edu>
Acked-by: David C Somayajulu <david.somayajulu@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Mike Christie authored and James Bottomley committed Oct 13, 2008
1 parent f0c0a37 commit c5e98e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c5e98e9

Please sign in to comment.