Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: linux-scsi@vger.kernel.org
Cc: Pete Zaitcev <zaitcev@redhat.com>
Subject: Patch from my store of obscure fixes
Date: Fri, 9 Aug 2002 16:48:34 -0400	[thread overview]
Message-ID: <20020809164834.A21474@devserv.devel.redhat.com> (raw)

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.

             reply	other threads:[~2002-08-09 20:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-09 20:48 Pete Zaitcev [this message]
2002-08-13 22:25 ` Patch from my store of obscure fixes Patrick Mansfield
  -- strict thread matches above, loose matches on Subject: below --
2002-08-16 13:08 conway, heather

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020809164834.A21474@devserv.devel.redhat.com \
    --to=zaitcev@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox