diff options
author | Ben Blum <bblum@andrew.cmu.edu> | 2011-05-27 03:25:21 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-27 04:12:34 +0400 |
commit | d846687d7f84e45f23ecf3846dbb43312a1206dd (patch) | |
tree | 5c19cf2e0e2faf288bb536f6878cddf11498ef3e /arch/powerpc/configs/ppc6xx_defconfig | |
parent | 74a1166dfe1135dcc168d35fa5261aa7e087011b (diff) | |
download | linux-d846687d7f84e45f23ecf3846dbb43312a1206dd.tar.xz |
cgroups: use flex_array in attach_proc
Convert cgroup_attach_proc to use flex_array.
The cgroup_attach_proc implementation requires a pre-allocated array to
store task pointers to atomically move a thread-group, but asking for a
monolithic array with kmalloc() may be unreliable for very large groups.
Using flex_array provides the same functionality with less risk of
failure.
This is a post-patch for cgroup-procs-write.patch.
Signed-off-by: Ben Blum <bblum@andrew.cmu.edu>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Matt Helsley <matthltc@us.ibm.com>
Reviewed-by: Paul Menage <menage@google.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc/configs/ppc6xx_defconfig')
0 files changed, 0 insertions, 0 deletions