* Patch from my store of obscure fixes
@ 2002-08-09 20:48 Pete Zaitcev
2002-08-13 22:25 ` Patrick Mansfield
0 siblings, 1 reply; 3+ messages in thread
From: Pete Zaitcev @ 2002-08-09 20:48 UTC (permalink / raw)
To: linux-scsi; +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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Patch from my store of obscure fixes
2002-08-09 20:48 Patch from my store of obscure fixes Pete Zaitcev
@ 2002-08-13 22:25 ` Patrick Mansfield
0 siblings, 0 replies; 3+ messages in thread
From: Patrick Mansfield @ 2002-08-13 22:25 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: linux-scsi
On Fri, Aug 09, 2002 at 04:48:34PM -0400, Pete Zaitcev wrote:
> 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?
It looks good, except the device should be offlined (or ?), and the
read capacity prevented; the similiar 2.4 patch prevented the read
capacity since the code is different, and it returned before the
read capacity.
-- Patrick Mansfield
>
> -- 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Patch from my store of obscure fixes
@ 2002-08-16 13:08 conway, heather
0 siblings, 0 replies; 3+ messages in thread
From: conway, heather @ 2002-08-16 13:08 UTC (permalink / raw)
To: 'Patrick Mansfield', Pete Zaitcev; +Cc: linux-scsi
Patrick,
The device returns a sense data of Logical Unit Not Ready - Manual
Intervention Required to a Test Unit Ready.
Heather
-----Original Message-----
From: Patrick Mansfield [mailto:patmans@us.ibm.com]
Sent: Tuesday, August 13, 2002 6:26 PM
To: Pete Zaitcev
Cc: linux-scsi@vger.kernel.org
Subject: Re: Patch from my store of obscure fixes
On Fri, Aug 09, 2002 at 04:48:34PM -0400, Pete Zaitcev wrote:
> 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?
It looks good, except the device should be offlined (or ?), and the
read capacity prevented; the similiar 2.4 patch prevented the read
capacity since the code is different, and it returned before the
read capacity.
-- Patrick Mansfield
>
> -- 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-08-16 13:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-09 20:48 Patch from my store of obscure fixes Pete Zaitcev
2002-08-13 22:25 ` Patrick Mansfield
-- strict thread matches above, loose matches on Subject: below --
2002-08-16 13:08 conway, heather
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.