PS: Here is the patch that fixed the original usbfs Oops, but gained the new one Vince reported:
Good -- more locks vanishing from usbcore; it's about time! This is a case where fewer locks are better.
My main patch feedback here would be that it should merge most of the usbfs patch I sent (second URL below). There's a driver model locking requirement that you didn't know about, it needs to bubble up (subsys.rwsem writelock must be held if you're going to change driver bindings). And there were a few other rough spots, which I think you've mentioned (and I don't think they were new issues).
The more I think about it, the more I like your idea of changing device->serialize to be an rwsem. Changing config, or resetting the device, would get the writelock. All other uses should share, with readlocks -- that's the right model.
Likely not before 2.6.1 though ... ;)
- Dave
[1] http://marc.theaimsgroup.com/?l=linux-usb-devel&m=107100212612153&w=2 [2] http://marc.theaimsgroup.com/?l=linux-usb-devel&m=107102580404037&w=2
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel