lkml.org 
[lkml]   [2009]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ftrace: do_each_pid_task() needs rcu lock

* Oleg Nesterov <oleg@redhat.com> wrote:

> "ftrace: use struct pid" commit 978f3a45d9499c7a447ca7615455cefb63d44165
> converted ftrace_pid_trace to "struct pid*". But we can't use
> do_each_pid_task() without rcu_read_lock() even if we know the pid
> itself can't go away (it was pinned in ftrace_pid_write). The exiting
> task can detach itself from this pid at any moment.
>
> Signed-off-by: Oleg Nesterov <oleg@redhat.com>

Applied to tip/tracing/urgent (for v2.6.29), thanks Oleg!

Ingo


\
 
 \ /
  Last update: 2009-02-03 22:53    [W:0.059 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site