On Mon, Mar 07, 2005 at 02:23:27PM -0500, Alan Stern wrote: > On Mon, 7 Mar 2005, Dmitry Torokhov wrote: > > > http://marc.theaimsgroup.com/?l=linux-kernel&m=109944258827464&w=2 > > A very interesting and relevant thread; thank you for pointing it out. > The conclusion was that as of last November, Greg was trying to put > together a solution. Has there been any progress? Yes, see the -mm tree. I have been slowly removing the rwsem from being used. It should all be fixed up in a month or so (hopefully...) > A more concrete question is: Should mutual exclusion between probe/remove > and suspend/resume be handled by the bus rwsem, by a semaphore in struct > device, or by individual bus drivers? Offhand I don't see any reason why > the rwsem wouldn't be enough. Besides me deleting the rwsem? :) struct device might be the best place for this. thanks, greg k-h