aboutsummaryrefslogtreecommitdiffstats
path: root/init/init_task.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2023-08-26 11:14:06 +0000
committerAndrew Morton <[email protected]>2023-10-04 17:41:56 +0000
commite34a35ee1f52312af130b5ebd42fa28313fc6149 (patch)
tree5f1fdbb07e75cb223925d98c48dcd50e3b12d62e /init/init_task.c
parentchange next_thread() to use __next_thread() ?: group_leader (diff)
downloadkernel-e34a35ee1f52312af130b5ebd42fa28313fc6149.tar.gz
kernel-e34a35ee1f52312af130b5ebd42fa28313fc6149.zip
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/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Oleg Nesterov <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions