]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
kill task_struct->thread_group
authorOleg Nesterov <oleg@redhat.com>
Sat, 26 Aug 2023 11:14:09 +0000 (13:14 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Oct 2023 17:41:56 +0000 (10:41 -0700)
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>
include/linux/sched.h
init/init_task.c
kernel/exit.c
kernel/fork.c

index 77f01ac385f7a57695c2e9af5b826cb4f9b39f6a..6d1341b1673f5c48c730a6133c56258d8bc7a20b 100644 (file)
@@ -1002,7 +1002,6 @@ struct task_struct {
        /* PID/PID hash table linkage. */
        struct pid                      *thread_pid;
        struct hlist_node               pid_links[PIDTYPE_MAX];
-       struct list_head                thread_group;
        struct list_head                thread_node;
 
        struct completion               *vfork_done;
index ff6c4b9bfe6b1c01c0d99d605d5f0c22693470d3..c0de0200fd56277ebc99fd7860b7827384d1b7b5 100644 (file)
@@ -132,7 +132,6 @@ struct task_struct init_task
        .pi_lock        = __RAW_SPIN_LOCK_UNLOCKED(init_task.pi_lock),
        .timer_slack_ns = 50000, /* 50 usec default slack */
        .thread_pid     = &init_struct_pid,
-       .thread_group   = LIST_HEAD_INIT(init_task.thread_group),
        .thread_node    = LIST_HEAD_INIT(init_signals.thread_head),
 #ifdef CONFIG_AUDIT
        .loginuid       = INVALID_UID,
index edb50b4c99728e568108ee943f8ff2f5fdba928b..f3ba4b97a7d97cbcf7e45054c591f0c625d33972 100644 (file)
@@ -133,7 +133,6 @@ static void __unhash_process(struct task_struct *p, bool group_dead)
                list_del_init(&p->sibling);
                __this_cpu_dec(process_counts);
        }
-       list_del_rcu(&p->thread_group);
        list_del_rcu(&p->thread_node);
 }
 
index 3b6d20dfb9a85ea3305a892d20316524a2c70bb0..b9d3aa493bbd2dffae2dd716ae05effaaabbbb4e 100644 (file)
@@ -2576,7 +2576,6 @@ __latent_entropy struct task_struct *copy_process(
        p->dirty_paused_when = 0;
 
        p->pdeath_signal = 0;
-       INIT_LIST_HEAD(&p->thread_group);
        p->task_works = NULL;
        clear_posix_cputimers_work(p);
 
@@ -2704,8 +2703,6 @@ __latent_entropy struct task_struct *copy_process(
                        atomic_inc(&current->signal->live);
                        refcount_inc(&current->signal->sigcnt);
                        task_join_group_stop(p);
-                       list_add_tail_rcu(&p->thread_group,
-                                         &p->group_leader->thread_group);
                        list_add_tail_rcu(&p->thread_node,
                                          &p->signal->thread_head);
                }