diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2020-04-27 22:32:54 +0300 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2020-04-29 00:42:03 +0300 |
commit | 8feebc6713cd78cbba8c4e2a6d92299669052026 (patch) | |
tree | ef0a0c158926256c3877092de317f00a0d2079be /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 507122805edd25fcda8e959b870cd897b27a05c1 (diff) | |
download | linux-8feebc6713cd78cbba8c4e2a6d92299669052026.tar.xz |
posix-cpu-timer: Tidy up group_leader logic in lookup_task
Replace has_group_leader_pid with thread_group_leader. Years ago Oleg
suggested changing thread_group_leader to has_group_leader_pid to handle
races. Looking at the code then and now I don't see how it ever helped.
Especially as then the code really did need to be the
thread_group_leader.
Today it doesn't make a difference if thread_group_leader races with
de_thread as the task returned from lookup_task in the non-thread case is
just used to find values in task->signal.
Since the races with de_thread have never been handled revert
has_group_header_pid to thread_group_leader for clarity.
Update the comment in lookup_task to remove implementation details that
are no longer true and to mention task->signal instead of task->sighand,
as the relevant cpu timer details are all in task->signal.
Ref: 55e8c8eb2c7b ("posix-cpu-timers: Store a reference to a pid not a task")
Ref: c0deae8c9587 ("posix-cpu-timers: Rcu_read_lock/unlock protect find_task_by_vpid call")
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions