Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af50bb99 authored by Chauhan, Vijay's avatar Chauhan, Vijay Committed by James Bottomley
Browse files

[SCSI] scsi_dh_rdac: Retry for NOT_READY check condition



This patch adds retry for NOT_READY check condition - Quiesce in
progress (02/A1/02)

Signed-off-by: default avatarVijay <Chauhan&lt;vijay.chauhan@lsi.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent ba33fadf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -574,6 +574,12 @@ static int rdac_check_sense(struct scsi_device *sdev,
			 * Just retry and wait.
			 */
			return ADD_TO_MLQUEUE;
		if (sense_hdr->asc == 0xA1  && sense_hdr->ascq == 0x02)
			/* LUN Not Ready - Quiescense in progress
			 * or has been achieved
			 * Just retry.
			 */
			return ADD_TO_MLQUEUE;
		break;
	case ILLEGAL_REQUEST:
		if (sense_hdr->asc == 0x94 && sense_hdr->ascq == 0x01) {