Hi Dave, > Drivers now could easily get those cleanup semantics with something > much smaller than your patch (though hcd_unlink_urb should still > get rid of that splice logic!): > > static inline void urb_begone(struct urb *urb) > { > while (usb_unlink_urb (urb) == -EBUSY) { > set_current_state (TASK_UNINTERRUPTIBLE); > schedule_timeout (HZ/100); > } > }
why not have usb_unlink_urb (sync) do this? Ciao, Duncan. ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel