Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756607AbZFQIUb (ORCPT ); Wed, 17 Jun 2009 04:20:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753422AbZFQIUQ (ORCPT ); Wed, 17 Jun 2009 04:20:16 -0400 Received: from mx2.redhat.com ([66.187.237.31]:41782 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753916AbZFQIUP (ORCPT ); Wed, 17 Jun 2009 04:20:15 -0400 Date: Wed, 17 Jun 2009 10:13:54 +0200 From: Stanislaw Gruszka To: Oleg Nesterov Cc: Andrew Morton , Peter Zijlstra , Roland McGrath , Vitaly Mayatskikh , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] wait_task_zombie: do not use thread_group_cputime() Message-ID: <20090617101354.4100a910@dhcp-lab-109.englab.brq.redhat.com> In-Reply-To: <20090615212651.GA22759@redhat.com> References: <20090615212651.GA22759@redhat.com> Organization: RedHat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1151 Lines: 31 On Mon, 15 Jun 2009 23:26:51 +0200 Oleg Nesterov wrote: > There is no reason for thread_group_cputime() in wait_task_zombie(), > there must be no other threads. > > This call was previously needed to collect the per-cpu data which > we do not have any longer. Is similar change for posix_cpu_timers_exit_group() correct and worthwhile ? void posix_cpu_timers_exit_group(struct task_struct *tsk) { - struct task_cputime cputime; + struct signal_struct *const sig = tsk->signal; - thread_group_cputimer(tsk, &cputime); cleanup_timers(tsk->signal->cpu_timers, - cputime.utime, cputime.stime, cputime.sum_exec_runtime); + cputime_add(tsk->utime, sig->utime), + cputime_add(tsk->stime, sig->stime), + tsk->se.sum_exec_runtime + sig->sum_sched_runtime); } Regards Stanislaw -- 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/