Skip to contentSkip to conversation

kill-task_struct-thread_group.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Oct 4, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled

     Subject: kill task_struct->thread_group

has been removed from the -mm tree. Its filename was
kill-task_struct-thread_group.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Oleg Nesterov <[email protected]>
Subject: kill task_struct->thread_group
Date: Sat, 26 Aug 2023 13:14:09 +0200

The last user was removed by the previous patch.

---

 include/linux/sched.h |    1 -
 init/init_task.c      |    1 -
 kernel/exit.c         |    1 -
 kernel/fork.c         |    3 ---
 4 files changed, 6 deletions(-)
include/linux/sched.h renamed from include/linux/sched.h~kill-task_struct-thread_group +0 -1
@@ -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;
init/init_task.c renamed from init/init_task.c~kill-task_struct-thread_group +0 -1
@@ -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,
kernel/exit.c renamed from kernel/exit.c~kill-task_struct-thread_group +0 -1
@@ -133,7 +133,6 @@ static void __unhash_process(struct task
 		list_del_init(&p->sibling);
 		__this_cpu_dec(process_counts);
 	}
-	list_del_rcu(&p->thread_group);
 	list_del_rcu(&p->thread_node);
 }
 
kernel/fork.c renamed from kernel/fork.c~kill-task_struct-thread_group +0 -3
@@ -2576,7 +2576,6 @@ __latent_entropy struct task_struct *cop
 	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 *cop
 			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);
 		}

_

Patches currently in -mm which might be from [email protected] are