Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752508AbWAFRXt (ORCPT ); Fri, 6 Jan 2006 12:23:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752502AbWAFRXq (ORCPT ); Fri, 6 Jan 2006 12:23:46 -0500 Received: from omx3-ext.sgi.com ([192.48.171.26]:35507 "EHLO omx3.sgi.com") by vger.kernel.org with ESMTP id S1752500AbWAFRXl (ORCPT ); Fri, 6 Jan 2006 12:23:41 -0500 Date: Fri, 6 Jan 2006 09:23:30 -0800 (PST) From: Christoph Lameter To: Ravikiran G Thirumalai cc: Oleg Nesterov , Shai Fultheim , Nippun Goel , linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [rfc][patch] Avoid taking global tasklist_lock for single threadedprocess at getrusage() In-Reply-To: <20060106094627.GA4272@localhost.localdomain> Message-ID: References: <43AD8AF6.387B357A@tv-sign.ru> <43B2874F.F41A9299@tv-sign.ru> <20051228183345.GA3755@localhost.localdomain> <20051228225752.GB3755@localhost.localdomain> <43B57515.967F53E3@tv-sign.ru> <20060104231600.GA3664@localhost.localdomain> <43BD70AD.21FC6862@tv-sign.ru> <20060106094627.GA4272@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 424 Lines: 14 On Fri, 6 Jan 2006, Ravikiran G Thirumalai wrote: > + need_lock = !(p == current && thread_group_empty(p)); Isnt need_lock = (p != current || !thread_group_empty(b)) clearer? - 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/