In that case shouldn't your argument be that all the synchronousIMHO usb_stor_clear_halt and usb_stor_reset_common should take dev_semaphore.What's the race?usb_stor_clear_halt uses a synchronous control message. It will not be unlinked upon disconnect. Disconnect must not return until the control message has failed.
wrappers for control and bulk should also take that semaphore?
Better to have one fix address most instances of this problem.
But here's a case where I think it'd be wrong to use a semaphore.
Some sort of shared lock for routine use, with "unbind driver from
interface" processing always getting it in exclusive mode, is more
the right idea ...
- Dave
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel