Re: Autosuspend for mass storage?

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

 



On Sun, 2 Aug 2009, Arjan van de Ven wrote:

> > _Something_ has to be responsible for detecting when an autosuspend is 
> > possible, and usb-storage doesn't have enough information to do it.
> 
> are you sure?

Yes.

> at least for an order 0:
> if NOTHING is using the device (nobody has it open, eg nothing mounted etc)
> we could autosuspend.

usb-storage doesn't know whether the device is open, mounted, or 
anything else.  It's only a transport.

> yes I know it doesn't cover the case of sd when there is something mounted,
> but still, nothing having it mounted is a very important usecase for many
> people (cardreaders etc etc)

As I said to Oliver, this sort of thing has to be done within the SCSI
layer.  Only there does the kernel know whether the device is open or
how the device is being used.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux