From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Date: Sun, 21 Jan 2001 12:33:33 +0000 Subject: Re: multiple events Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sonntag, 21. Januar 2001 13:29, Andrew Morton wrote: > Oliver Neukum wrote: > > Hi list, > > > > I was looking through the kmod code and was wondering about the context > > /sbin/hotplug is run. > > > > It seems to be run in the context of keventd. Does this mean that there > > can only be one instance of /sbin/hotplug at a time ? > > No, /sbin/hotplug is run asynchronously, so multiple instances > can and will be run concurrently. A fix exists, but I'm still > trying to get my head around whether there's justification > for asking for its inclusion. Does this mean that "add" might race with "remove" ? On the other hand, if you go for serialisation, is there a possibilty of a deadlock ? device 1 -> hotplug -> module loaded -> device 2 registered -> hotplug -> DEADLOCK Regards Oliver _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel