On Thu, Dec 12, 2002 at 04:05:48PM +0100, Oliver Neukum wrote:
> Am Donnerstag, 12. Dezember 2002 00:44 schrieb Greg KH:
> > On Wed, Dec 11, 2002 at 11:41:24PM +0100, Oliver Neukum wrote:
> > >  /* used when updating list of hcds */
> > > -DECLARE_MUTEX (usb_bus_list_lock);       /* exported only for usbfs */
> > > -EXPORT_SYMBOL_GPL (usb_bus_list_lock);
> > > +DECLARE_RWSEM (usb_topology_lock);       /* exported only for usbfs */
> > > +EXPORT_SYMBOL_GPL (usb_topology_lock);
> >
> > No, don't change this to a rwlock.  It isn't needed.  I changed this a
> > long time ago to a simple semaphore and it should be kept that way.
> >
> > So without the type change, and the name change, this just adds a few
> > places in usb.c to protect the list some more?
> 
> Done. Here it is. It turns out to be surprisingly simple.

But now the only user of the serialize semaphore is devio.c, right?  Is
that still even needed now, or am I missing something?

thanks,

greg k-h


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to