exit: exit_notify: re-use "dead" list to autoreap current
authorOleg Nesterov <oleg@redhat.com>
Wed, 10 Dec 2014 23:55:23 +0000 (15:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:18 +0000 (17:41 -0800)
commit6c66e7dba3d4419c8b973505679635efcd6b311c
tree95ae4db5d7768a6b96e3e0e26337348e2aa03b56
parent482a3767e5087f6e6ad2486a6655aaa5f3d59301
exit: exit_notify: re-use "dead" list to autoreap current

After the previous change we can add just the exiting EXIT_DEAD task to
the "dead" list and remove another release_task(tsk).

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>
kernel/exit.c