exit/kthread: Move the exit code for kernel threads into struct kthread
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 3 Dec 2021 17:42:49 +0000 (11:42 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 13 Dec 2021 18:04:46 +0000 (12:04 -0600)
commit6b1248798eb6f6d5285db214299996ecc5dc1e6b
tree82070262292fd8092903dad833453a3644398a40
parent40966e316f86b8cfd83abd31ccb4df729309d3e7
exit/kthread: Move the exit code for kernel threads into struct kthread

The exit code of kernel threads has different semantics than the
exit_code of userspace tasks.  To avoid confusion and allow
the userspace implementation to change as needed move
the kernel thread exit code into struct kthread.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/kthread.c