Am Donnerstag, 12. Dezember 2002 20:29 schrieb Greg KH:
> 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?
Yes, configuration changes and assorted stuff. I strongly doubt
that we can live with one single semaphore. That was my initial,
faulty reason for turning this into an rw_semaphore.
The matter is not simple and prone to deadlocks though.
I have to think about it.
Regards
Oliver
-------------------------------------------------------
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