]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] scsi_dh_rdac: Retry for NOT_READY check condition
authorChauhan, Vijay <Vijay.Chauhan@lsi.com>
Tue, 17 Mar 2009 13:21:40 +0000 (18:51 +0530)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 18 Mar 2009 02:07:06 +0000 (22:07 -0400)
This patch adds retry for NOT_READY check condition - Quiesce in
progress (02/A1/02)

Signed-off-by: Vijay Chauhan<vijay.chauhan@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/device_handler/scsi_dh_rdac.c

index 07962f675fef131bc3661f374a1d923a7ea0bbf5..43b8c51e98d090d5cdf1f333fc449730e6002d1e 100644 (file)
@@ -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) {