1 From: Hannes Reinecke <hare@suse.de>
2 Subject: scsi_dh_rdac does not retry MODE SENSE on UNIT ATTENTION
5 When we encounter a UNIT ATTENTION sense code we should always retry
6 the command; the ASC and ASQ codes are irrelevant here.
8 Signed-off-by: Hannes Reinecke <hare@suse.de>
9 Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
11 diff --git a/drivers/scsi/device_handler/scsi_dh_rdac.c b/drivers/scsi/device_handler/scsi_dh_rdac.c
12 index f25a03e..3ab052d 100644
13 --- a/drivers/scsi/device_handler/scsi_dh_rdac.c
14 +++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
15 @@ -459,11 +459,10 @@ static int mode_select_handle_sense(struct scsi_device *sdev,
16 sense = (sense_hdr.sense_key << 16) | (sense_hdr.asc << 8) |
18 /* If it is retryable failure, submit the c9 inquiry again */
19 - if (sense == 0x59136 || sense == 0x68b02 || sense == 0xb8b02 ||
21 + if (sense_hdr.sense_key == 6 || sense == 0x59136 || sense == 0xb8b02) {
22 /* 0x59136 - Command lock contention
23 - * 0x[6b]8b02 - Quiesense in progress or achieved
24 - * 0x62900 - Power On, Reset, or Bus Device Reset
25 + * 0xb8b02 - Quiescense achieved
26 + * 0x6xxxx - Unit Attention