Re: Question about "Not Ready" SCSI error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
again.

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
http://marc.theaimsgroup.com/?l=linux-scsi&m=115142503103468

The patch is in Linus' tree now.
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=history;f=drivers/scsi/sd.c
--
Stefan Richter
-=====-=-==- -=== =====
http://arcgraph.de/sr/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux