Re: question on flushing buffers and spinning down disk

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel,gmane.linux.scsi
Message-ID <[email protected]>
On Mon, 24 Sep 2007, Oliver Neukum wrote:

> > subsystem implements its own form of runtime PM support, then you'll be
> > able to use it properly.  But until then, there isn't anything much you
> > can do.
> 
> Well, we can't simply cut power. Buffers must be flushed and the disk
> spun down. The suspend() method of the storage driver will have to become
> complex.

That's right, if the device is a real disk.  If it's a flash memory
device then of course these issues don't arise.  Unfortunately the
driver isn't able to tell one from the other; the user will have to
do that for us.

So for now we can simply rely on the defaults being set right: USB
autosuspend is normally disabled, but the user can enable it if desired
(and if the device can handle it).  It would be nice if we had some way 
to warn people that enabling autosuspend for real disk drives might be 
a bad idea...  Maybe a section in the linux-usb.org FAQ would help, 
plus a file under Documentation/usb.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.