From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933083Ab1JDRoQ (ORCPT ); Tue, 4 Oct 2011 13:44:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39994 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932703Ab1JDRoP (ORCPT ); Tue, 4 Oct 2011 13:44:15 -0400 Date: Tue, 4 Oct 2011 19:39:36 +0200 From: Oleg Nesterov To: Thomas Gleixner Cc: Matt Fleming , Linus Torvalds , Andi Kleen , Tejun Heo , linux-kernel@vger.kernel.org, Tony Luck , Peter Zijlstra , David Mosberger-Tang Subject: Re: [RFC][PATCH 0/5] Signal scalability series Message-ID: <20111004173936.GC3489@redhat.com> References: <1317395577-14091-1-git-send-email-matt@console-pimps.org> <1317461738.3375.46.camel@mfleming-mobl1.ger.corp.intel.com> <1317656613.3375.78.camel@mfleming-mobl1.ger.corp.intel.com> <20111003163559.GA3957@redhat.com> <1317675520.3375.82.camel@mfleming-mobl1.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04, Thomas Gleixner wrote: > > The main nuisance of sighand->siglock is the exit race protection and > that's why we need to take it for evrything and some more. > > In order to distangle the posix-(cpu)-timer and other stuffs > protection from that single lock, you need to introduce "independent" > locks Yes. And there is another (much more important imho) reason. We need a separate lock to protect thread_group/children to avoid tasklist_lock in exit_notify/wait/etc. And probably it should be sleepable. Oleg.