summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf.c
diff options
context:
space:
mode:
authorOleg Nesterov2008-07-25 10:47:44 +0200
committerLinus Torvalds2008-07-25 19:53:40 +0200
commitb564daf806d492dd4f7afe9b6c83b8d35d137669 (patch)
treefbd6d186035b9a0a270fca97887da5d6b106a60c /fs/binfmt_elf.c
parentcoredump: make mm->core_state visible to ->core_dump() (diff)
downloadkernel-qcow2-linux-b564daf806d492dd4f7afe9b6c83b8d35d137669.tar.gz
kernel-qcow2-linux-b564daf806d492dd4f7afe9b6c83b8d35d137669.tar.xz
kernel-qcow2-linux-b564daf806d492dd4f7afe9b6c83b8d35d137669.zip
coredump: construct the list of coredumping threads at startup time
binfmt->core_dump() has to iterate over the all threads in system in order to find the coredumping threads and construct the list using the GFP_ATOMIC allocations. With this patch each thread allocates the list node on exit_mm()'s stack and adds itself to the list. This allows us to do further changes: - simplify ->core_dump() - change exit_mm() to clear ->mm first, then wait for ->core_done. this makes the coredumping process visible to oom_kill - kill mm->core_done 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>
Diffstat (limited to 'fs/binfmt_elf.c')
0 files changed, 0 insertions, 0 deletions