diff mbox

scsi_dh_rdac: retry IO for 06/3f/03 in rdac_check_sense fn

Message ID 1C9608B8A4CD534FB19C7C7543CBB24902991CCA21@inbmail02.lsi.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Chauhan, Vijay Aug. 2, 2010, 7:37 a.m. UTC
None
diff mbox

Patch

diff -uprN linux-2.6.35-rc6-orig/drivers/scsi/device_handler/scsi_dh_rdac.c linux-2.6.35-rc6/drivers/scsi/device_handler/scsi_dh_rdac.c
--- linux-2.6.35-rc6-orig/drivers/scsi/device_handler/scsi_dh_rdac.c	2010-07-22 15:13:38.000000000 -0400
+++ linux-2.6.35-rc6/drivers/scsi/device_handler/scsi_dh_rdac.c	2010-07-27 12:13:58.000000000 -0400
@@ -738,6 +738,11 @@  static int rdac_check_sense(struct scsi_
 			 * Quiescence in progress , just retry.
 			 */
 			return ADD_TO_MLQUEUE;
+		if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x03)
+			/*
+			 * INQUIRY DATA has changed, retry again.
+			 */
+			return ADD_TO_MLQUEUE;
 		break;
 	}
 	/* success just means we do not care what scsi-ml does */