> > What is the point of using a tasklet? It is about locking, not context.
> 
> No!  Just the reverse.  The point of using a tasklet has nothing to do
> with locking.  It is about running time-consuming code in an
> interrupt-enabled context.  That's why bottom halves were invented in the
> first place -- so that lengthy I/O handlers could run without blocking
> interrupts.

A tasklet is useful only if you cannot enable interrupts because you are
in hard irq context. If you shift the existing enqueue code to a tasklet
you gain nothing, because the spinlocks need to block irqs.
If you change the locking there you don't need a tasklet.

        Regards
                Oliver


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to