From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751641AbWBMIvy (ORCPT ); Mon, 13 Feb 2006 03:51:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751625AbWBMIvy (ORCPT ); Mon, 13 Feb 2006 03:51:54 -0500 Received: from mailhub.sw.ru ([195.214.233.200]:25009 "EHLO relay.sw.ru") by vger.kernel.org with ESMTP id S1751242AbWBMIvx (ORCPT ); Mon, 13 Feb 2006 03:51:53 -0500 Message-ID: <43F04909.40202@sw.ru> Date: Mon, 13 Feb 2006 11:53:29 +0300 From: Kirill Korotaev User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.2.1) Gecko/20030426 X-Accept-Language: ru-ru, en MIME-Version: 1.0 To: "Eric W. Biederman" CC: linux-kernel@vger.kernel.org, vserver@list.linux-vserver.org, Herbert Poetzl , "Serge E. Hallyn" , Alan Cox , Dave Hansen , Arjan van de Ven , Suleiman Souhlal , Hubertus Franke , Cedric Le Goater , Kyle Moffett , Greg , Linus Torvalds , Andrew Morton , Greg KH , Rik van Riel , Alexey Kuznetsov , Andrey Savochkin , Kirill Korotaev , Andi Kleen , Benjamin Herrenschmidt , Jeff Garzik , Trond Myklebust , Jes Sorensen Subject: Re: [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace References: <43ECF803.8080404@sw.ru> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >>>+static inline int pspace_task_visible(struct pspace *pspace, struct >> >>task_struct *tsk) >> >>>+{ >>>+ return (tsk->pspace == pspace) || >>>+ ((tsk->pspace->child_reaper.pspace == pspace) && >>>+ (tsk->pspace->child_reaper.task == tsk)); >> >><<< the logic with child_reaper which can be somehow partly inside pspace... and >>this check is not that abvious. > > > This is the check for what shows up in /proc. > > Given that is how I have explicitly documented things to work, (the > init process straddles the boundary) I fail to see how it is not obvious. I was confused by the fact that child_reaper.pspace is actually a parent pspace. Kirill