coredump_wait: don't call complete_vfork_done()
authorOleg Nesterov <oleg@redhat.com>
Mon, 5 Mar 2012 22:59:13 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 Mar 2012 23:49:42 +0000 (15:49 -0800)
commit57b59c4a1400fa6c34764eab2e35a8762dc05a09
treee50e6a6f9f7fcd897856e5cdaca3d3caa18377d6
parentd68b46fe16ad59b3a5f51ec73daaa5dc06753798
coredump_wait: don't call complete_vfork_done()

Now that CLONE_VFORK is killable, coredump_wait() no longer needs
complete_vfork_done().  zap_threads() should find and kill all tasks with
the same ->mm, this includes our parent if ->vfork_done is set.

mm_release() becomes the only caller, unexport complete_vfork_done().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c
include/linux/sched.h
kernel/fork.c