On Sun, Oct 13, 2002 at 03:36:04PM +0200, Oliver Neukum wrote:
> Hi,
> 
> David's remark about documenting the locking needed between
> usb_Set_configuration() and probe() caused me to look through
> other parts of usbcore.
> 
> Well, sadly I found some.
> 
> Races with disconnect:
> All synchronous operations (usb_reset_device, usb_clear_halt, ...)

Hm, any pointers to the problem area?

> Races with probe:
> usb_reset_device, a probe while resetting is bound to malfunction

Like David said, I don't think this is a problem.

> Would anybody object to solve this with proper locking ?
> Would anybody object to changing the semaphore in usb_device
> into an rw semaphore ?

How about droping the semaphore all together and using the lock in the
struct device portion?

thanks,

greg k-h


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to