lkml.org 
[lkml]   [2014]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.



\
 
 \ /
  Last update: 2014-04-09 20:01    [W:0.221 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site