diff options
author | Oleg Nesterov <oleg@redhat.com> | 2023-08-26 14:14:06 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-04 20:41:56 +0300 |
commit | e34a35ee1f52312af130b5ebd42fa28313fc6149 (patch) | |
tree | 5f1fdbb07e75cb223925d98c48dcd50e3b12d62e /init | |
parent | d639cf4abb4d171ab2456904da5668c42b5c1937 (diff) | |
download | linux-e34a35ee1f52312af130b5ebd42fa28313fc6149.tar.xz |
change thread_group_empty() to use task_struct->thread_node
Patch series "kill task_struct->thread_group".
This patch (of 2):
It could use list_is_singular() but this way it is cheaper. Plus the
thread_group_leader() check makes it clear that thread_group_empty() can
only return true if p is a group leader. This was not immediately obvious
before this patch.
task_struct->thread_group no longer has users, it can die.
Link: https://lkml.kernel.org/r/20230826111200.GA22982@redhat.com
Link: https://lkml.kernel.org/r/20230826111406.GA23238@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions