Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752564Ab0KYNd4 (ORCPT ); Thu, 25 Nov 2010 08:33:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61682 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943Ab0KYNdz (ORCPT ); Thu, 25 Nov 2010 08:33:55 -0500 Date: Thu, 25 Nov 2010 14:26:39 +0100 From: Oleg Nesterov To: Michael Holzheu Cc: Shailabh Nagar , Andrew Morton , Peter Zijlstra , John stultz , Thomas Gleixner , Balbir Singh , Martin Schwidefsky , Heiko Carstens , Roland McGrath , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [patch 4/4] taskstats: Export "cdata_acct" with taskstats Message-ID: <20101125132639.GB25836@redhat.com> References: <20101119201108.269346583@linux.vnet.ibm.com> <20101119201144.871656307@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101119201144.871656307@linux.vnet.ibm.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: 680 Lines: 25 On 11/19, Michael Holzheu wrote: > > From: Michael Holzheu > > With this patch the (full) cumulative CPU time is added to "struct taskstats". > The CPU time is only returned for the thread group leader. > > ... > > + if (tsk->tgid == tsk->pid thread_group_leader() ? > && lock_task_sighand(tsk, &flags)) { Do you really need ->siglock? Starting from 2.6.35 it is always safe to access ->signal. 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/