Hi, all

In usb.c (kernel 2.4.20, I have to work on this kernel version),

function usb_start_wait_urb() sets the process state to
TASK_UNINTERRUPTIBLE and add the process to awd.wqh before calling
usb_submit_urb(). What is this for?

And What if scheduling happens during the usb_submit_urb() but before
it calls urb->complete to wake the process? A TASK_UNINTERRUPTIBLE
process wont have chance to run, right? Isnt this a deadlock? (please
correct me if I am wrong).

Thanks,
Li Xinyi


-------------------------------------------------------
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