Re: [RFC] Implementation of SCSI dynamic power management

Alan Stern
2008-01-09T17:22:52Z

On Wed, 9 Jan 2008, Oliver Neukum wrote:

> This has an interesting implication. As the storage driver can share
> a device with in principle any other usb driver, we must audit all usb
> drivers if we wish to adopt this patch.
> All a device's interfaces must be resumed when the storage interface
> is resumed. To resume a storage device no memory must be allocated
> because that could deadlock.

Maybe people shouldn't enable autosuspend for their swap device...

What happens during normal system resume if a driver (not just USB!)
needs to allocate memory before the swap device has been resumed?

Alan Stern