Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965315AbWADWqJ (ORCPT ); Wed, 4 Jan 2006 17:46:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965316AbWADWqI (ORCPT ); Wed, 4 Jan 2006 17:46:08 -0500 Received: from e35.co.us.ibm.com ([32.97.110.153]:1465 "EHLO e35.co.us.ibm.com") by vger.kernel.org with ESMTP id S965315AbWADWqG (ORCPT ); Wed, 4 Jan 2006 17:46:06 -0500 Subject: Re: [ckrm-tech] Re: [Patch 6/6] Delay accounting: Connector interface From: Matt Helsley To: Jay Lan Cc: Shailabh Nagar , Andrew Morton , linux-kernel , elsa-devel , LSE , CKRM-Tech , Paul Jackson , Erik Jacobson , Jack Steiner , John Hesterberg In-Reply-To: <43BC1C43.9020101@engr.sgi.com> References: <43BB05D8.6070101@watson.ibm.com> <43BB09D4.2060209@watson.ibm.com> <43BC1C43.9020101@engr.sgi.com> Content-Type: text/plain Date: Wed, 04 Jan 2006 14:40:31 -0800 Message-Id: <1136414431.22868.115.camel@stark> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1602 Lines: 51 On Wed, 2006-01-04 at 11:04 -0800, Jay Lan wrote: > Shailabh Nagar wrote: > >Index: linux-2.6.15-rc7/kernel/exit.c > >=================================================================== > >--- linux-2.6.15-rc7.orig/kernel/exit.c > >+++ linux-2.6.15-rc7/kernel/exit.c > >@@ -29,6 +29,7 @@ > > #include > > #include > > #include > >+#include > > > > #include > > #include > >@@ -865,6 +866,7 @@ fastcall NORET_TYPE void do_exit(long co > > > > tsk->exit_code = code; > > proc_exit_connector(tsk); > >+ cnstats_exit_connector(tsk); > > > > We need to move both proc_exit_connector(tsk) and > cnstats_exit_connector(tsk) up to before exit_mm(tsk) statement. > There are task statistics collected in task->mm and those stats > will be lost after exit_mm(tsk). > > Thanks, > - jay > > > exit_notify(tsk); > > #ifdef CONFIG_NUMA > > mpol_free(tsk->mempolicy); > >- Good point. The assignment of the task exit code will also have to move up before exit_mm(tsk) because the process event connector exit function retrieves the exit code from the task struct. Moving these may also affect the job/pagg/task_notify/cpuset exit notification if we're eventually going to remove *direct* calls to these from kernel/exit.c. Cheers, -Matt Helsley - 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/