Re: [PATCHv4] usbnet: Resubmit interrupt URB once if halted
From: Alan Stern <hidden>
Date: 2011-04-21 21:40:54
On Thu, 21 Apr 2011, Oliver Neukum wrote:
Am Donnerstag, 21. April 2011, 16:03:34 schrieb Alan Stern:quoted
On Tue, 19 Apr 2011, Paul Stewart wrote:quoted
quoted
This version of the patch moves the urb submit directly into usbnet_resume. Is it okay to submit a GFP_KERNEL urb from usbnet_resume()?Suppose a device of two interfaces one of them storage is autosuspended. GFP_KERNEL in the first device to be resumed triggers a pageout to the suspended storage device.
True enough, I had forgotten about that. A resume routine should always use GFP_NOIO, not GFP_KERNEL. In fact this restriction is true in general, not just for USB devices containing a mass-storage interface. The backing device for an evicted page might not be resumed until later on in the resume sequence. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html