Searched hist:"38 fd525a4c61e7ecdc9ad4dcbf7b767d0a007962" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/include/linux/sched/ |
H A D | signal.h | diff 38fd525a4c61e7ecdc9ad4dcbf7b767d0a007962 Wed Jul 01 07:30:06 CDT 2020 Eric W. Biederman <ebiederm@xmission.com> exit: Factor thread_group_exited out of pidfd_poll
Create an independent helper thread_group_exited which returns true when all threads have passed exit_notify in do_exit. AKA all of the threads are at least zombies and might be dead or completely gone.
Create this helper by taking the logic out of pidfd_poll where it is already tested, and adding a READ_ONCE on the read of task->exit_state.
I will be changing the user mode driver code to use this same logic to know when a user mode driver needs to be restarted.
Place the new helper thread_group_exited in kernel/exit.c and EXPORT it so it can be used by modules.
Link: https://lkml.kernel.org/r/20200702164140.4468-13-ebiederm@xmission.com Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Tested-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
|
/openbmc/linux/kernel/ |
H A D | exit.c | diff 38fd525a4c61e7ecdc9ad4dcbf7b767d0a007962 Wed Jul 01 07:30:06 CDT 2020 Eric W. Biederman <ebiederm@xmission.com> exit: Factor thread_group_exited out of pidfd_poll
Create an independent helper thread_group_exited which returns true when all threads have passed exit_notify in do_exit. AKA all of the threads are at least zombies and might be dead or completely gone.
Create this helper by taking the logic out of pidfd_poll where it is already tested, and adding a READ_ONCE on the read of task->exit_state.
I will be changing the user mode driver code to use this same logic to know when a user mode driver needs to be restarted.
Place the new helper thread_group_exited in kernel/exit.c and EXPORT it so it can be used by modules.
Link: https://lkml.kernel.org/r/20200702164140.4468-13-ebiederm@xmission.com Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Tested-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
|
H A D | fork.c | diff 38fd525a4c61e7ecdc9ad4dcbf7b767d0a007962 Wed Jul 01 07:30:06 CDT 2020 Eric W. Biederman <ebiederm@xmission.com> exit: Factor thread_group_exited out of pidfd_poll
Create an independent helper thread_group_exited which returns true when all threads have passed exit_notify in do_exit. AKA all of the threads are at least zombies and might be dead or completely gone.
Create this helper by taking the logic out of pidfd_poll where it is already tested, and adding a READ_ONCE on the read of task->exit_state.
I will be changing the user mode driver code to use this same logic to know when a user mode driver needs to be restarted.
Place the new helper thread_group_exited in kernel/exit.c and EXPORT it so it can be used by modules.
Link: https://lkml.kernel.org/r/20200702164140.4468-13-ebiederm@xmission.com Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Tested-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
|