Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kill task_struct->thread_group

The last user was removed by the previous patch.

Link: https://lkml.kernel.org/r/20230826111409.GA23243@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>

authored by

Oleg Nesterov and committed by
Andrew Morton
8e1f3851 e34a35ee

-6
-1
include/linux/sched.h
··· 1002 1002 /* PID/PID hash table linkage. */ 1003 1003 struct pid *thread_pid; 1004 1004 struct hlist_node pid_links[PIDTYPE_MAX]; 1005 - struct list_head thread_group; 1006 1005 struct list_head thread_node; 1007 1006 1008 1007 struct completion *vfork_done;
-1
init/init_task.c
··· 132 132 .pi_lock = __RAW_SPIN_LOCK_UNLOCKED(init_task.pi_lock), 133 133 .timer_slack_ns = 50000, /* 50 usec default slack */ 134 134 .thread_pid = &init_struct_pid, 135 - .thread_group = LIST_HEAD_INIT(init_task.thread_group), 136 135 .thread_node = LIST_HEAD_INIT(init_signals.thread_head), 137 136 #ifdef CONFIG_AUDIT 138 137 .loginuid = INVALID_UID,
-1
kernel/exit.c
··· 133 133 list_del_init(&p->sibling); 134 134 __this_cpu_dec(process_counts); 135 135 } 136 - list_del_rcu(&p->thread_group); 137 136 list_del_rcu(&p->thread_node); 138 137 } 139 138
-3
kernel/fork.c
··· 2576 2576 p->dirty_paused_when = 0; 2577 2577 2578 2578 p->pdeath_signal = 0; 2579 - INIT_LIST_HEAD(&p->thread_group); 2580 2579 p->task_works = NULL; 2581 2580 clear_posix_cputimers_work(p); 2582 2581 ··· 2703 2704 atomic_inc(&current->signal->live); 2704 2705 refcount_inc(&current->signal->sigcnt); 2705 2706 task_join_group_stop(p); 2706 - list_add_tail_rcu(&p->thread_group, 2707 - &p->group_leader->thread_group); 2708 2707 list_add_tail_rcu(&p->thread_node, 2709 2708 &p->signal->thread_head); 2710 2709 }