On Thu, 29 Jan 2004, Stephen Hemminger wrote:

> Still tracking down the repeatable OOPS in uhci when an receive interrupt
> transfer is aborted. 
> 
> I noticed that either the comment or the code is wrong about locking
> urb->lock.  uhci_add_td_to_urb is *not* called with urb locked, but
> the comment says it must be.  Is the code or the comment wrong?

I think the comment is wrong.  The idea is to prevent conflicts with
uhci_remove_td_from_urb, but it shouldn't be possible for both of them to
be running simultaneously anyhow.  add_td_to_urb only runs during 
submission and remove_td_from_urb only runs following a failed submission 
or when an urb is unlinked or completed.

Alan Stern



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to