exit: Remove profile_handoff_task
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 8 Jan 2022 16:03:24 +0000 (10:03 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 8 Jan 2022 18:43:57 +0000 (12:43 -0600)
commit2873cd31a20c25b5e763b35e5fb886f0938c6dd5
tree650b0e003b78aea00ad72be8117677fcc76a445f
parent2d4bcf886e42f0f4846a3d9bdc3a90d278903a2e
exit: Remove profile_handoff_task

All profile_handoff_task does is notify the task_free_notifier chain.
The helpers task_handoff_register and task_handoff_unregister are used
to add and delete entries from that chain and are never called.

So remove the dead code and make it much easier to read and reason
about __put_task_struct.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lkml.kernel.org/r/87fspyw6m0.fsf@email.froward.int.ebiederm.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/profile.h
kernel/fork.c
kernel/profile.c