From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756545AbZBWS37 (ORCPT ); Mon, 23 Feb 2009 13:29:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753647AbZBWS3v (ORCPT ); Mon, 23 Feb 2009 13:29:51 -0500 Received: from mx2.redhat.com ([66.187.237.31]:47389 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753367AbZBWS3u (ORCPT ); Mon, 23 Feb 2009 13:29:50 -0500 Date: Mon, 23 Feb 2009 19:26:38 +0100 From: Oleg Nesterov To: Roland McGrath Cc: Andrew Morton , "Eric W. Biederman" , "Metzger, Markus T" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] forget_original_parent: split out the un-ptrace part Message-ID: <20090223182638.GA22806@redhat.com> References: <20090211211216.GA16847@redhat.com> <20090220022746.8852CFC2F7@magilla.sf.frob.com> <20090223164632.GA16294@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090223164632.GA16294@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 On 02/23, Oleg Nesterov wrote: > > If we are going to optimize out tasklist in forget_original_parent(), then > I'd prefer http://marc.info/?l=linux-kernel&m=123438710725342 > > But this needs a fat comment. And I didn't think carefully about this code. No, this won't work. When ->child_reaper exits, it must take tasklist and call find_new_reaper() even if it has no children. Oleg.