From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Jenkins Date: Tue, 02 Jun 2009 09:26:09 +0000 Subject: Re: [GIT] Experimental threaded udev Message-Id: <9b2b86520906020226q9f1b73fg400d827f2c0e4dc7@mail.gmail.com> List-Id: References: <4A1EA138.10400@tuffmail.co.uk> In-Reply-To: <4A1EA138.10400@tuffmail.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On 6/2/09, Kay Sievers wrote: > On Mon, Jun 1, 2009 at 21:39, Kay Sievers wrote: >> On Mon, Jun 1, 2009 at 18:24, Alan Jenkins >> wrote: >> >>> I don't think the signal handler should be doing list traversal, in case >>> it >>> interrupts list manipulation in the main loop. Or perhaps the main loop >>> should only allow signals during ppoll(). >> >> Make sense. we can block them during list mangling, or just go for >> signalfd, and convert all the signal handling to it. > > Here is a version that uses signalfd(), and a socketpair() from the > workers to pass data back. Same numbers so far, but the code looks a > lot simpler. > > Kay Yes, that looks great. Alan