From mboxrd@z Thu Jan 1 00:00:00 1970 From: sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org Subject: Re: [PATCH] pid: Extend/Fix pid_vnr Date: Thu, 6 Dec 2007 17:04:24 -0800 Message-ID: <20071207010424.GB29065@us.ibm.com> References: <20071206171513.GB10674@tv-sign.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20071206171513.GB10674-6lXkIZvqkOAvJsYlp49lxw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oleg Nesterov Cc: Linux Containers , Andrew Morton , "Eric W. Biederman" , Pavel Emelyanov List-Id: containers.vger.kernel.org Oleg Nesterov [oleg-6lXkIZvqkOAvJsYlp49lxw@public.gmane.org] wrote: | On 12/05, Eric W. Biederman wrote: | > | > +pid_t pid_vnr(struct pid *pid) | > +{ | > + return pid_nr_ns(pid, current->nsproxy->pid_ns); | > +} Hmm. current->nsproxy be NULL during process exit ? So this safe as long as pid_vnr() is not called after a process exits its namespaces. Probably no such callers atm. | | Excellent!!! | | This allows us to do many cleanups. I am sending the trivial patch just | as example. | | Oleg.