commit | 229c4ef8ae56d69f8dec64533bf1c7f8070c1a4a | [log] [tgz] |
---|---|---|
author | Oleg Nesterov <oleg@redhat.com> | Tue Feb 03 20:39:04 2009 +0100 |
committer | Ingo Molnar <mingo@elte.hu> | Tue Feb 03 22:50:58 2009 +0100 |
tree | e13a9ef3602f945ae51b73b592c8ae4d29e67ca3 | |
parent | b1792e367053968f2ddb48bc911d314143ce6242 [diff] |
ftrace: do_each_pid_task() needs rcu lock "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> Signed-off-by: Ingo Molnar <mingo@elte.hu>