Re: [PATCH linux-cr] nested pid namespaces (v2)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oren Laadan
Date: Monday, March 22, 2010 - 4:17 pm

Serge E. Hallyn wrote:

Thanks for adapting the patch.

FWIW, not only minimize memory allocations, but also permit a more
regular structure of the image data (array of fixed size elements
followed by an array of vpids), which simplifies the code that needs
to read/write/access this data.


[...]


Currently we do this while() loop twice - once here and once when
we collect the vpids. While I doubt if this has any performance
impact, is there an advantage to doing it also here ?  (a violation
will be observed there too).

[...]


Maybe add the lock/rcu already, so it is never forgotten later ?


[...]


How about ckpt_read_consume() for this ?


[...]


instead:
	ret = ckpt_read_consume(ctx, ..., ...);

[...]


This comes from an unrelated patch/purpose, right - maybe mention
in the patch description ?


@pad is redundant as last element.


This doesn't look healthy.

If it is (or will be) possible for another process to look at the
restarting process, not having a pid-ns may confuse other code in
the kernel ?


Oren.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH linux-cr] nested pid namespaces (v2), Serge E. Hallyn, (Fri Mar 19, 2:39 pm)
[PATCH] user-ns: Nested pidns support (v2), Serge E. Hallyn, (Fri Mar 19, 2:41 pm)
Re: [PATCH linux-cr] nested pid namespaces (v2), Louis Rilling, (Mon Mar 22, 3:55 am)
Re: [PATCH linux-cr] nested pid namespaces (v2), Serge E. Hallyn, (Mon Mar 22, 7:38 am)
Re: [PATCH linux-cr] nested pid namespaces (v2), Matt Helsley, (Mon Mar 22, 12:57 pm)
Re: [PATCH linux-cr] nested pid namespaces (v2), Oren Laadan, (Mon Mar 22, 4:17 pm)
Re: [PATCH linux-cr] nested pid namespaces (v2), Serge E. Hallyn, (Mon Mar 22, 9:26 pm)
Re: [PATCH linux-cr] nested pid namespaces (v2), Oren Laadan, (Mon Mar 22, 10:39 pm)
Re: [PATCH linux-cr] nested pid namespaces (v2), Louis Rilling, (Mon Mar 22, 11:41 pm)