> And to answer the first part of your question, the state is set and the 
> process is added to awd.wqh so that it can sleep during the "while 
> (timeout && !awd.done)" loop.  Since schedule_timeout doesn't change 
> the process state, it will return immediately if the state isn't set 
> beforehand to TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE.

Ehm. That cannot be left standing categorically. schedule_timeout()
will alter the process state if it is not TASK_RUNNING. In fact
schedule_timeout() guarantees that after it has returned the task state
will be TASK_RUNNING.

        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://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to