Re: Question about "Not Ready" SCSI error

From: Stefan Richter
Date: Sun Jul 30 2006 - 19:22:33 EST

Johannes Weiner wrote:
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

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

AFAIU, the scsi_eh (error handler) already has proper code for exactly this purpose, but the code is inactive. Any driver (SCSI low-level driver or SCSI command set driver) can activate it by setting scsi_device->allow_restart = 1.

Brian King posted a patch which lets you enable that flag at runtime:
"scsi: Add allow_restart sysfs class attribute", 2006-06-27

The patch is in Linus' tree now.;a=history;f=drivers/scsi/sd.c
Stefan Richter
-=====-=-==- -=== =====
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at