Kirill Korotaev <dev@sw.ru> writes: >> + >> +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. Eric - 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/
- Follow-Ups:
- Re: [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- From: Dave Hansen <haveblue@us.ibm.com>
- Re: [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- From: Kirill Korotaev <dev@sw.ru>
- Re: [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- References:
- [RFC][PATCH 0/20] Multiple instances of the process id namespace
- From: ebiederm@xmission.com (Eric W. Biederman)
- [RFC][PATCH 01/20] pid: Intoduce the concept of a wid (wait id)
- From: ebiederm@xmission.com (Eric W. Biederman)
- [RFC][PATCH 02/20] pspace: The parent process id of pid 1 is always 0.
- From: ebiederm@xmission.com (Eric W. Biederman)
- [RFC][PATCH 03/20] pid: Introduce a generic helper to test for init.
- From: ebiederm@xmission.com (Eric W. Biederman)
- [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- From: ebiederm@xmission.com (Eric W. Biederman)
- Re: [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- From: Kirill Korotaev <dev@sw.ru>
- [RFC][PATCH 0/20] Multiple instances of the process id namespace
- Prev by Date: Re: [PATCH] neofb: add more logic to determine sensibility of register readback
- Next by Date: Re: [Lhms-devel] [RFC/PATCH: 002/010] Memory hotplug for new nodes with pgdat allocation. (Wait table and zonelists initalization)
- Previous by thread: Re: [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- Next by thread: Re: [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- Index(es):
![]() |