]> git.baikalelectronics.ru Git - kernel.git/commit
exit/kthread: Have kernel threads return instead of calling do_exit
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 20 Oct 2021 17:43:58 +0000 (12:43 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 29 Oct 2021 19:31:33 +0000 (14:31 -0500)
commitefab275cf887b9721113cbd14bf2e317df29016c
tree39d09b1edf7871beda0ffd3be69a67fb8cbd8b8b
parent21d81bf71bfea466e2de64f2842a564b42e41352
exit/kthread: Have kernel threads return instead of calling do_exit

In 2009 Oleg reworked[1] the kernel threads so that it is not
necessary to call do_exit if you are not using kthread_stop().  Remove
the explicit calls of do_exit and complete_and_exit (with a NULL
completion) that were previously necessary.

[1] a1a21fe3f06c ("kthreads: rework kthread_stop()")
Link: https://lkml.kernel.org/r/20211020174406.17889-12-ebiederm@xmission.com
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
drivers/firmware/stratix10-svc.c
drivers/soc/ti/wkup_m3_ipc.c
fs/ocfs2/journal.c
kernel/kthread.c
net/batman-adv/tp_meter.c