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.

[PATCH] kill unushed __put_task_struct_cb

Somehow in the midst of dotting i's and crossing t's during
the merge up to rc1 we wound up keeping __put_task_struct_cb
when it should have been killed as it no longer has any users.
Sorry I probably should have caught this while it was
still in the -mm tree.

Having the old code there gets confusing when reading
through the code and trying to understand what is
happening.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Eric W. Biederman and committed by
Linus Torvalds
64541d19 1f602454

-7
-1
include/linux/sched.h
··· 911 911 extern void free_task(struct task_struct *tsk); 912 912 #define get_task_struct(tsk) do { atomic_inc(&(tsk)->usage); } while(0) 913 913 914 - extern void __put_task_struct_cb(struct rcu_head *rhp); 915 914 extern void __put_task_struct(struct task_struct *t); 916 915 917 916 static inline void put_task_struct(struct task_struct *t)
-6
kernel/fork.c
··· 124 124 free_task(tsk); 125 125 } 126 126 127 - void __put_task_struct_cb(struct rcu_head *rhp) 128 - { 129 - struct task_struct *tsk = container_of(rhp, struct task_struct, rcu); 130 - __put_task_struct(tsk); 131 - } 132 - 133 127 void __init fork_init(unsigned long mempages) 134 128 { 135 129 #ifndef __HAVE_ARCH_TASK_STRUCT_ALLOCATOR