Commit f11cc076 authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Ingo Molnar

sched/core: Drop the unused try_get_task_struct() helper function

This function was introduced by:

  150593bf ("sched/api: Introduce task_rcu_dereference() and try_get_task_struct()")

... to allow easier usage of task_rcu_dereference(), however no users
were ever added. Drop the helper.
Signed-off-by: default avatarDavidlohr Bueso <>
Cc: Linus Torvalds <>
Cc: Oleg Nesterov <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Link: default avatarIngo Molnar <>
parent 902b3194
......@@ -95,8 +95,6 @@ static inline void put_task_struct(struct task_struct *t)
struct task_struct *task_rcu_dereference(struct task_struct **ptask);
struct task_struct *try_get_task_struct(struct task_struct **ptask);
extern int arch_task_struct_size __read_mostly;
......@@ -318,19 +318,6 @@ void rcuwait_wake_up(struct rcuwait *w)
struct task_struct *try_get_task_struct(struct task_struct **ptask)
struct task_struct *task;
task = task_rcu_dereference(ptask);
if (task)
return task;
* Determine if a process group is "orphaned", according to the POSIX
* definition in Orphaned process groups are not to be affected
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment