coredump: elf_core_dump: use core_state->dumper list
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 25 Jul 2008 08:47:45 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:40 +0000 (10:53 -0700)
commit83914441f94c6f2cd468ca97365f6c34f418706e
treebbeb67d51e277b0caedb52072f3ac83fcf779d5a
parentb564daf806d492dd4f7afe9b6c83b8d35d137669
coredump: elf_core_dump: use core_state->dumper list

Kill the nasty rcu_read_lock() + do_each_thread() loop, use the list
encoded in mm->core_state instead, s/GFP_ATOMIC/GFP_KERNEL/.

This patch allows futher cleanups in binfmt_elf.c, in particular we can
kill the parallel info->threads list.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/binfmt_elf.c