[Devel] [PATCH 2/2] cgroups: Clean up cgroup_pidlist_find() a bit

2010-01-26 Thread Li Zefan
Don't Call get_pid_ns() before we locate/alloc the ns. Signed-off-by: Li Zefan l...@cn.fujitsu.com --- cgroup.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) --- a/kernel/cgroup.c.orig 2010-01-26 14:24:29.0 +0800 +++ a/kernel/cgroup.c 2010-01-26

[Devel] Re: [PATCH 1/2] cgroups: Fix to return errno in a failure path

2010-01-26 Thread Serge E. Hallyn
Quoting Li Zefan (l...@cn.fujitsu.com): In cgroup_create(), if alloc_css_id() returns failure, the errno is not propagated to userspace, so mkdir will fail silently. To trigger this bug, we mount blkio (or memory subsystem), and create more then 65534 cgroups. (The number of cgroups is

[Devel] Re: [RFC] c/r: 32-bit support on x86-64

2010-01-26 Thread Oren Laadan
Applied, thanks. se...@us.ibm.com wrote: The first patch is a resend from friday, and should be applied to v19. The second patch I think should be applied to v19 as well, as it will prevent accidental attempts to restart a 64-bit image with a 32-bit restart, and vice versa. The third

[Devel] Re: [PATCH 2/2] cgroups: Clean up cgroup_pidlist_find() a bit

2010-01-26 Thread Paul Menage
On Tue, Jan 26, 2010 at 12:17 AM, Li Zefan l...@cn.fujitsu.com wrote: Don't Call get_pid_ns() before we locate/alloc the ns. Signed-off-by: Li Zefan l...@cn.fujitsu.com Acked-by: Paul Menage men...@google.com ---  cgroup.c |    8 +++-  1 file changed, 3 insertions(+), 5 deletions(-)

[Devel] Re: [PATCH 1/2] cgroups: Fix to return errno in a failure path

2010-01-26 Thread KAMEZAWA Hiroyuki
On Tue, 26 Jan 2010 15:01:26 -0800 Paul Menage men...@google.com wrote: On Tue, Jan 26, 2010 at 12:16 AM, Li Zefan l...@cn.fujitsu.com wrote: Signed-off-by: Li Zefan l...@cn.fujitsu.com Acked-by: Paul Menage men...@google.com Thank you. Acked-by: KAMEZAWA Hiroyuki