Am Samstag 03 November 2001 12:40 schrieb Thomas Sailer: > Oliver Neukum wrote: > > A look through usbdevfs shows that there's no locking. > > ??? > > usbdevfs has devsem to prevent these races (it's a rwsem, > reading used to access the device, disconnect requires taking > the semaphore for writing, thus locking out readers).
Could you please point me to the locking in usb.c ? I am probably dense there, but I find usb.c taking only drivers->serialize. > That's the way USB locking works. The driver has to protect > itself against disconnect, and in case transfers are still > going on when the disconnect function is called, the driver > has to delay termination of the disconnect function until > it is finished using the device. I fully agree. Regards Oliver _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel