Am Thursday 18 March 2004 17:27 schrieb Stephen Hemminger:
> On Thu, 18 Mar 2004 16:44:39 +0100
> Oliver Neukum <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > you must use set_current_state() only after usb_submit_urb() with GFP_KERNEL
> > as second argument, because it may sleep to allocate memory and is woken up
> > resetting the state to TASK_RUNNING. In that case you had a busy polling loop.
> > Furthermore, always use wake_up unconditionally. It checkes anyway.
> > 
> >     Regards
> >             Oliver
> 
> Wouldn't this be a good place to use wait_event_interruptible macro?

If you find a way to use it with a timeout, yes it would.

        Regards
                Oliver


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to