mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Johannes Weiner <hnazfoo@googlemail.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Question about "Not Ready" SCSI error
Date: Sun, 30 Jul 2006 23:52:57 +0200	[thread overview]
Message-ID: <20060730215257.GA8339@leiferikson.dystopia.lan> (raw)
In-Reply-To: <20060730181014.GA13456@oscar.prima.de>

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

Hi,

On Sun, Jul 30, 2006 at 08:10:19PM +0200, Patrick Mau wrote:
> Google revealed[1] that the drive is waiting for a START UNIT command,
> but it seems that the kernel is not attempting to spin up the drive
> again.

I don't know exactly if it's enough to requeue the scsi command, please
comment on this, guys.

Signed-off-by: Johannes Weiner <hnazfoo@gmail.com>

[-- Attachment #2: scsi_lib.patch --]
[-- Type: text/plain, Size: 480 bytes --]

diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 077c1c6..545b900 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -913,6 +913,7 @@ void scsi_io_completion(struct scsi_cmnd
 			if (sshdr.asc == 0x04) {
 				switch (sshdr.ascq) {
 				case 0x01: /* becoming ready */
+				case 0x02: /* waiting for spin up */
 				case 0x04: /* format in progress */
 				case 0x05: /* rebuild in progress */
 				case 0x06: /* recalculation in progress */

  reply	other threads:[~2006-07-30 21:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-30 18:10 Patrick Mau
2006-07-30 21:52 ` Johannes Weiner [this message]
2006-07-30 23:22   ` Stefan Richter
2006-07-30 22:28 ` Johannes Weiner
2006-07-31 23:13 ` Philippe Troin
2006-08-01  5:56   ` Stefan Richter

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=20060730215257.GA8339@leiferikson.dystopia.lan \
    --to=hnazfoo@googlemail.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®