On Sat, 19 Jan 2013, Sergei Shtylyov wrote:

>     But, assuming URBs complete asynchronously, I fail to see the issue with 
> the current locking scheme... we lock during the time URB is submitted either 
> way, what's the matter if we lock out other processes at this time? We don't 
> seem to hinder the current process, it will submit another URB when the 
> syscall returns, as usual. Am I missing something?

What happens if usbfs submits an async URB and releases the lock, but 
then while the URB is running, usb-storage sends a command to the 
device?

Since the order in which URBs for different endpoints get sent to the 
device is random, this could cause exactly the effect you want to 
avoid.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to