On Tue, 3 Jul 2007, Felipe Balbi wrote:
> So looks like we don't have (yet) a way to make it work nicely in both
> cases... does anyone has a clue about how to implement this one??
You of course still can
local_irq_save(flags);
spin_lock(&some_lock);
...
spin_unlock(&some_lock);
usb_hcd_giveback_urb(hcd, urb);
local_irq_restore(flags);
which is safe even against future removal of preempt inc/dec from
spin_lock_irq{save,restore}() functions.
--
Jiri Kosina
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel