> but a patch to add a flag to the usb core and the host controller drivers is 
> still needed. I'll have a look at it. I propose the flag to be called 
> URB_MEM_NOIO.

As I understand it, that sounds appropriate.  Basically, any place that
usbcore or an hcd now uses GFP_KERNEL, if URB_MEM_NOIO
is set then it should use GFP_NOIO instead.  Similarly for using
SLAB_KERNEL and SLAB_NOIO.

The pci_pool calls will need a tweak; they test for SLAB_KERNEL,
but SLAB_NOIO should work there too.

Some USB APIs will be trouble, since they don't pass an URB
or explicit mem_flags value down.  Were you thinking of just
making it all use SLAB_NOIO?  That might cause a few more
"out of memory" error reports in places it's not necessary (khubd
as one example).  But I'm not sure making usb_control_msg() and
all its callers (and their callers ... :) take a new mem_flags parameter
would be a reasonable API change.

- Dave



_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to