Am Freitag, 8. März 2002 14:29 schrieb V Ganesh:
> hi,
>       I noticed that usb_submit_urb() is supposed to be used with a GFP
> flag, which ought to be GFP_ATOMIC if called from an interrupt handler or
> bottom half. however, a grep of GFP_ATOMIC in drivers/usb/serial/* in
> greg's 2.5 tree draws a total blank. I would have thought a function like
> visor_read_bulk_callback() should have used GFP_ATOMIC rather than
> GFP_KERNEL to resubmit the bulk read urb. could someone please clarify
> this?

It should. You are saved by a check for in_interrupt() in kmalloc.
Greg will probably happily see patches.

Please note that GFP_ATOMIC is also needed while holding
a spinlock and nobody saves you in this case.

        Regards
                Oliver

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

Reply via email to