On Mon, Mar 07, 2005 at 11:11:51AM -0500, Alan Stern wrote: > On Sat, 5 Mar 2005, Greg KH wrote: > > > On Sat, Mar 05, 2005 at 10:38:03PM -0500, Alan Stern wrote: > > > The need to make sure that suspend/resume are mutually exclusive > > > with probe/release (and possibly other entry points). The USB > > > subsystem has set up its own private locking arrangement to take > > > care of this; perhaps that scheme should be adopted more widely. > > > > This locking should be moved to the driver core, if possible. > > My thought exactly! Would it suffice to have the PM suspend and resume > routines get a read lock on the bus subsystem's rwsem? I am slowly deleting the usage of the bus subsystem rwsem (see the patches on lkml and in the -mm tree). So no, no new usage of that lock is acceptable. thanks, greg k-h