| Date | Wed, 9 Apr 2014 19:12:51 +0200 | From | Oleg Nesterov <> | Subject | Re: [PATCH 1/5] sched: Convert thread_group_cputime() to use for_each_thread() |
| |
On 04/09, Frederic Weisbecker wrote: > > @@ -295,16 +295,15 @@ void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times) > > rcu_read_lock(); > /* make sure we can trust tsk->thread_group list */ > - if (!likely(pid_alive(tsk))) > + if (!likely(pid_alive(p)))
You can simply remove this check now. for_each_thread() is always safe.
Oleg.
|