Brian King wrote:
This is a resend of a patch I generated in response to an email sent by Ruben Faelens <parasietje@xxxxxxxxx>. His original email to linux-scsi requested a method in which he could spin down a scsi disk when not in use and have the kernel automatically spin it back up when an I/O was generated to the disk. The infrastructure to automatically spin a disk up has been in the scsi error handler for some time now,
I am positively surprised that this code is actually already there --- I didn't notice...
but it is not enabled by default. This patch adds an sd sysfs attribute which allows userspace to enable this behavior.
What is the reason that the code is not enabled by default? Are there dependencies on command set or transport, or firmwares which won't react properly?
There were a few requests for auto-spinup for SBP-2 HDDs during the last months, e.g. https://bugzilla.novell.com/show_bug.cgi?id=183011 . Maybe sbp2 should switch on sdev->allow_restart for all SBP-2 direct access and RBC devices, or at least for those that are known to require it.
-- Stefan Richter -=====-=-==- -==- ==-== http://arcgraph.de/sr/ - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html