mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									e34a35ee1f
								
							
						
					
					
						commit
						8e1f385104
					
				
					 4 changed files with 0 additions and 6 deletions
				
			
		|  | @ -1002,7 +1002,6 @@ struct task_struct { | ||||||
| 	/* PID/PID hash table linkage. */ | 	/* PID/PID hash table linkage. */ | ||||||
| 	struct pid			*thread_pid; | 	struct pid			*thread_pid; | ||||||
| 	struct hlist_node		pid_links[PIDTYPE_MAX]; | 	struct hlist_node		pid_links[PIDTYPE_MAX]; | ||||||
| 	struct list_head		thread_group; |  | ||||||
| 	struct list_head		thread_node; | 	struct list_head		thread_node; | ||||||
| 
 | 
 | ||||||
| 	struct completion		*vfork_done; | 	struct completion		*vfork_done; | ||||||
|  |  | ||||||
|  | @ -132,7 +132,6 @@ struct task_struct init_task | ||||||
| 	.pi_lock	= __RAW_SPIN_LOCK_UNLOCKED(init_task.pi_lock), | 	.pi_lock	= __RAW_SPIN_LOCK_UNLOCKED(init_task.pi_lock), | ||||||
| 	.timer_slack_ns = 50000, /* 50 usec default slack */ | 	.timer_slack_ns = 50000, /* 50 usec default slack */ | ||||||
| 	.thread_pid	= &init_struct_pid, | 	.thread_pid	= &init_struct_pid, | ||||||
| 	.thread_group	= LIST_HEAD_INIT(init_task.thread_group), |  | ||||||
| 	.thread_node	= LIST_HEAD_INIT(init_signals.thread_head), | 	.thread_node	= LIST_HEAD_INIT(init_signals.thread_head), | ||||||
| #ifdef CONFIG_AUDIT | #ifdef CONFIG_AUDIT | ||||||
| 	.loginuid	= INVALID_UID, | 	.loginuid	= INVALID_UID, | ||||||
|  |  | ||||||
|  | @ -133,7 +133,6 @@ static void __unhash_process(struct task_struct *p, bool group_dead) | ||||||
| 		list_del_init(&p->sibling); | 		list_del_init(&p->sibling); | ||||||
| 		__this_cpu_dec(process_counts); | 		__this_cpu_dec(process_counts); | ||||||
| 	} | 	} | ||||||
| 	list_del_rcu(&p->thread_group); |  | ||||||
| 	list_del_rcu(&p->thread_node); | 	list_del_rcu(&p->thread_node); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2576,7 +2576,6 @@ __latent_entropy struct task_struct *copy_process( | ||||||
| 	p->dirty_paused_when = 0; | 	p->dirty_paused_when = 0; | ||||||
| 
 | 
 | ||||||
| 	p->pdeath_signal = 0; | 	p->pdeath_signal = 0; | ||||||
| 	INIT_LIST_HEAD(&p->thread_group); |  | ||||||
| 	p->task_works = NULL; | 	p->task_works = NULL; | ||||||
| 	clear_posix_cputimers_work(p); | 	clear_posix_cputimers_work(p); | ||||||
| 
 | 
 | ||||||
|  | @ -2704,8 +2703,6 @@ __latent_entropy struct task_struct *copy_process( | ||||||
| 			atomic_inc(¤t->signal->live); | 			atomic_inc(¤t->signal->live); | ||||||
| 			refcount_inc(¤t->signal->sigcnt); | 			refcount_inc(¤t->signal->sigcnt); | ||||||
| 			task_join_group_stop(p); | 			task_join_group_stop(p); | ||||||
| 			list_add_tail_rcu(&p->thread_group, |  | ||||||
| 					  &p->group_leader->thread_group); |  | ||||||
| 			list_add_tail_rcu(&p->thread_node, | 			list_add_tail_rcu(&p->thread_node, | ||||||
| 					  &p->signal->thread_head); | 					  &p->signal->thread_head); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Oleg Nesterov
						Oleg Nesterov