Searched hist:"753550 eb0ce1fea4b5cbd989f2e06ef80b2feb28" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/ |
H A D | fork.c | diff 753550eb0ce1fea4b5cbd989f2e06ef80b2feb28 Mon Apr 11 14:13:56 CDT 2022 Eric W. Biederman <ebiederm@xmission.com> fork: Explicitly set PF_KTHREAD
Instead of implicitly inheriting PF_KTHREAD from the parent process examine arguments in kernel_clone_args to see if PF_KTHREAD should be set. This makes knowledge of which new threads are kernel threads explicit.
This also makes it so that init and the user mode helper processes no longer have PF_KTHREAD set.
Link: https://lkml.kernel.org/r/20220506141512.516114-6-ebiederm@xmission.com Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
|