diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-12-11 02:55:20 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-11 04:41:18 +0300 |
commit | 482a3767e5087f6e6ad2486a6655aaa5f3d59301 (patch) | |
tree | 53e54ff3b94db9a691f413684e27612347dbce96 /arch/ia64/scripts | |
parent | ad9e206aefa56788b676ebcd6329e828f40d2238 (diff) | |
download | linux-482a3767e5087f6e6ad2486a6655aaa5f3d59301.tar.xz |
exit: reparent: call forget_original_parent() under tasklist_lock
Shift "release dead children" loop from forget_original_parent() to its
caller, exit_notify(). It is safe to reap them even if our parent reaps
us right after we drop tasklist_lock, those children no longer have any
connection to the exiting task.
And this allows us to avoid write_lock_irq(tasklist_lock) right after it
was released by forget_original_parent(), we can simply call it with
tasklist_lock held.
While at it, move the comment about forget_original_parent() up to
this function.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Sterling Alexander <stalexan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/ia64/scripts')
0 files changed, 0 insertions, 0 deletions