From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [PATCH] Mark timer_stats as incompatible with multiple pid namespaces Date: Thu, 13 Dec 2007 21:26:21 +0100 Message-ID: <20071213202621.GC25130@elte.hu> References: <20071213090102.GB1926@elte.hu> <20071213130423.GB28340@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Eric W. Biederman" Cc: Thomas Gleixner , Linux Containers , linux-kernel@vger.kernel.org List-Id: containers.vger.kernel.org * Eric W. Biederman wrote: > > the problem is, this interface stores historic PIDs too - i.e. PIDs > > of tasks that might have exited already. > > Well struct pid * works in that case if you grab the reference to it. but the display of the stats might happen much later. The point of this API is to save pid+comm, which gives users a good idea about what caused the events in the past - without having to pin any resource of that task. > { > timer->start_site = NULL; > + pit_pid(timer->start_pid); > + timer->start_pid = NULL; s/pit/put, right? Ingo