Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932814Ab0LTQar (ORCPT ); Mon, 20 Dec 2010 11:30:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:10339 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932586Ab0LTQaq (ORCPT ); Mon, 20 Dec 2010 11:30:46 -0500 Date: Mon, 20 Dec 2010 17:23:47 +0100 From: Oleg Nesterov To: Tejun Heo Cc: roland@redhat.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, rjw@sisk.pl, jan.kratochvil@redhat.com Subject: Re: [PATCH 11/16] signal: prepare for CLD_* notification changes Message-ID: <20101220162347.GB15755@redhat.com> References: <1291654624-6230-1-git-send-email-tj@kernel.org> <1291654624-6230-12-git-send-email-tj@kernel.org> <20101220162120.GA15755@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101220162120.GA15755@redhat.com> 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 Content-Length: 898 Lines: 33 On 12/20, Oleg Nesterov wrote: > > On 12/06, Tejun Heo wrote: > > > > + * Determine whether and what to notify. This should be done under > > + * @tsk's siglock. > > Hmm... it is not clear why. > > > + spin_lock_irqsave(&sighand->siglock, flags); > > > > + switch (why) { > > + case CLD_CONTINUED: > > + case CLD_STOPPED: > > + case CLD_TRAPPED: > > + notify = why; > > + break; > > + } > > OK, with the next patches this code checks sig->flags, probably that > is why we take ->siglock. Still I can't understand this so far. > May be the comment could tell more? Ah, I didn't notice we are going to change sig->flags here, please ignore. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/