[RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context
Alan Stern
stern at rowland.harvard.edu
Mon Jun 10 16:51:57 EDT 2013
On Mon, 10 Jun 2013, Alan Stern wrote:
> > Tasklet doesn't disable local interrupts.
>
> It is documented that interrupts will be disabled while the completion
> handler runs. Therefore the tasklet _must_ disable local interrupts.
You know, it may be that you can get most of the advantages you want by
enabling local interrupts around the call to unmap_urb_for_dma() in
usb_hcd_giveback_urb().
This may be a little dangerous, though, because it is possible for an
URB to be given back at the time it is submitted. Drivers may not
expect interrupts to get enabled temporarily when they call
usb_submit_urb().
Alan Stern
More information about the linux-arm-kernel
mailing list