Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932068AbVL0UVv (ORCPT ); Tue, 27 Dec 2005 15:21:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751140AbVL0UVv (ORCPT ); Tue, 27 Dec 2005 15:21:51 -0500 Received: from omx2-ext.sgi.com ([192.48.171.19]:4551 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S1751136AbVL0UVv (ORCPT ); Tue, 27 Dec 2005 15:21:51 -0500 Date: Tue, 27 Dec 2005 12:21:38 -0800 (PST) From: Christoph Lameter To: Oleg Nesterov cc: Ravikiran Thirumalai , Shai Fultheim , Nippun Goel , linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [rfc][patch] Avoid taking global tasklist_lock for single threaded process at getrusage() In-Reply-To: <43AD8AF6.387B357A@tv-sign.ru> Message-ID: References: <43AD8AF6.387B357A@tv-sign.ru> 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: 511 Lines: 12 On Sat, 24 Dec 2005, Oleg Nesterov wrote: > I can't understand this. 'p' can do clone(CLONE_THREAD) immediately > after 'if (!thread_group_empty(p))' check. Only if p != current. As discussed later the lockless approach is intened to only be used if p == current. - 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/