diff options
author | 2024-01-27 14:24:07 +0100 | |
---|---|---|
committer | 2024-02-02 13:12:28 +0100 | |
commit | 21e25205d7f9b6d7d3807546dd12ea93844b7c8e (patch) | |
tree | a108a353ed272200db1a876db45c22691118a755 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | pidfd: cleanup the usage of __pidfd_prepare's flags (diff) | |
download | wireguard-linux-21e25205d7f9b6d7d3807546dd12ea93844b7c8e.tar.xz wireguard-linux-21e25205d7f9b6d7d3807546dd12ea93844b7c8e.zip |
pidfd: don't do_notify_pidfd() if !thread_group_empty()
do_notify_pidfd() makes no sense until the whole thread group exits, change
do_notify_parent() to check thread_group_empty().
This avoids the unnecessary do_notify_pidfd() when tsk is not a leader, or
it exits before other threads, or it has a ptraced EXIT_ZOMBIE sub-thread.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20240127132407.GA29136@redhat.com
Reviewed-by: Tycho Andersen <tandersen@netflix.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions