coredump: elf_fdpic_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)
commit182c515fd2a942623aed4e4e0e0b37fe96571b05
tree2b792a4efbb3577e90986ee92d7e1d5d708d0174
parent83914441f94c6f2cd468ca97365f6c34f418706e
coredump: elf_fdpic_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_fdpic.c.

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