From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Zaitcev Subject: Patch from my store of obscure fixes Date: Fri, 9 Aug 2002 16:48:34 -0400 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20020809164834.A21474@devserv.devel.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Id: linux-scsi@vger.kernel.org To: linux-scsi@vger.kernel.org Cc: Pete Zaitcev Apparently, this patch comes from an expirience with a Clariion array with some volumes disabled by operator. When Linux reboots, it tries to spin them up and for some reason it times out, and generally takes a very long time. I do suspect that START STOP UNIT should return failure immediately, but perhaps it does not. What do you guys think about this? Obviously a workaround, but is it useful? -- Pete --- linux-2.5.30/drivers/scsi/sd.c Thu Aug 1 14:16:13 2002 +++ linux-2.5.30-sparc/drivers/scsi/sd.c Fri Aug 9 13:47:52 2002 @@ -847,6 +847,16 @@ } /* + * If the drive requires human intervention, + * don't bother to jerk the drive until it happens. + */ + if (the_result != 0 && + SRpnt->sr_sense_buffer[2] == NOT_READY && + SRpnt->sr_sense_buffer[12] == 0x04 && /* ASC */ + SRpnt->sr_sense_buffer[13] == 0x03) /* ASCQ */ + return; + + /* * If the drive has indicated to us that it doesn't have * any media in it, don't bother with any of the rest of * this crap.