From: "Paul E. McKenney" The latest set of signal-RCU patches does not use get_task_struct_rcu(). Attached is a patch that removes it. Signed-off-by: "Paul E. McKenney" Signed-off-by: Andrew Morton --- include/linux/sched.h | 12 ------------ 1 files changed, 12 deletions(-) diff -puN include/linux/sched.h~remove-get_task_struct_rcu include/linux/sched.h --- devel/include/linux/sched.h~remove-get_task_struct_rcu 2005-12-22 05:09:07.000000000 -0800 +++ devel-akpm/include/linux/sched.h 2005-12-22 05:09:07.000000000 -0800 @@ -879,18 +879,6 @@ extern void free_task(struct task_struct extern void __put_task_struct(struct task_struct *tsk); #define get_task_struct(tsk) do { atomic_inc(&(tsk)->usage); } while(0) -static inline int get_task_struct_rcu(struct task_struct *t) -{ - int oldusage; - - do { - oldusage = atomic_read(&t->usage); - if (oldusage == 0) - return 0; - } while (cmpxchg(&t->usage.counter, oldusage, oldusage+1) != oldusage); - return 1; -} - extern void __put_task_struct_cb(struct rcu_head *rhp); static inline void put_task_struct(struct task_struct *t) _