|
@@ -318,19 +318,6 @@ void rcuwait_wake_up(struct rcuwait *w)
|
|
|
rcu_read_unlock();
|
|
rcu_read_unlock();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-struct task_struct *try_get_task_struct(struct task_struct **ptask)
|
|
|
|
|
-{
|
|
|
|
|
- struct task_struct *task;
|
|
|
|
|
-
|
|
|
|
|
- rcu_read_lock();
|
|
|
|
|
- task = task_rcu_dereference(ptask);
|
|
|
|
|
- if (task)
|
|
|
|
|
- get_task_struct(task);
|
|
|
|
|
- rcu_read_unlock();
|
|
|
|
|
-
|
|
|
|
|
- return task;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
/*
|
|
/*
|
|
|
* Determine if a process group is "orphaned", according to the POSIX
|
|
* Determine if a process group is "orphaned", according to the POSIX
|
|
|
* definition in 2.2.2.52. Orphaned process groups are not to be affected
|
|
* definition in 2.2.2.52. Orphaned process groups are not to be affected
|