RE: [PATCH 1/2v6] procfs: show hierarchy of pid namespace

2014-11-06 Thread Chen, Hanxiao
g; David > Howells; Richard Weinberger; Pavel Emelyanov; Vasiliy Kulikov > Subject: Re: [PATCH 1/2v6] procfs: show hierarchy of pid namespace > > On Wed, Nov 05, 2014 at 06:41:54PM +0800, Chen Hanxiao wrote: > > +static void free_pidns_list(struct list_head *head) > &g

Re: [PATCH 1/2v6] procfs: show hierarchy of pid namespace

2014-11-06 Thread Richard Weinberger
ge Hallyn; Oleg Nesterov; >> contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; Mateusz >> Guzik; David Howells >> Subject: Re: [PATCH 1/2v6] procfs: show hierarchy of pid namespace >> >> Am 05.11.2014 um 13:41 schrieb Serge E. Hallyn: >>> Quoting Ri

RE: [PATCH 1/2v6] procfs: show hierarchy of pid namespace

2014-11-05 Thread Chen, Hanxiao
el@vger.kernel.org; Mateusz > Guzik; David Howells > Subject: Re: [PATCH 1/2v6] procfs: show hierarchy of pid namespace > > Am 05.11.2014 um 13:41 schrieb Serge E. Hallyn: > > Quoting Richard Weinberger (rich...@nod.at): > >> Am 05.11.2014 um 11:41 schrieb Chen Hanxiao: > &g

Re: [PATCH 1/2v6] procfs: show hierarchy of pid namespace

2014-11-05 Thread Richard Weinberger
Am 05.11.2014 um 13:41 schrieb Serge E. Hallyn: > Quoting Richard Weinberger (rich...@nod.at): >> Am 05.11.2014 um 11:41 schrieb Chen Hanxiao: >>> We lack of pid hierarchy information, and this will lead to: >>> a) we don't know pids' relationship, who is whose child: >>>/proc/PID/ns/pid only t

Re: [PATCH 1/2v6] procfs: show hierarchy of pid namespace

2014-11-05 Thread Serge E. Hallyn
Quoting Richard Weinberger (rich...@nod.at): > Am 05.11.2014 um 11:41 schrieb Chen Hanxiao: > > We lack of pid hierarchy information, and this will lead to: > > a) we don't know pids' relationship, who is whose child: > >/proc/PID/ns/pid only tell us whether two pids live in different ns > > b)

Re: [PATCH 1/2v6] procfs: show hierarchy of pid namespace

2014-11-05 Thread Richard Weinberger
Am 05.11.2014 um 11:41 schrieb Chen Hanxiao: > We lack of pid hierarchy information, and this will lead to: > a) we don't know pids' relationship, who is whose child: >/proc/PID/ns/pid only tell us whether two pids live in different ns > b) bring trouble to nested lxc container check/restore/mi

Re: [PATCH 1/2v6] procfs: show hierarchy of pid namespace

2014-11-05 Thread Mateusz Guzik
On Wed, Nov 05, 2014 at 06:41:54PM +0800, Chen Hanxiao wrote: > +static void free_pidns_list(struct list_head *head) > +{ > + struct pidns_list *tmp, *pos; > + > + list_for_each_entry_safe(pos, tmp, head, list) { > + list_del(&pos->list); Any need for this one? stuff is freed a