Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ftrace: do_each_pid_task() needs rcu lock
"ftrace: use struct pid" commit 978f3a4 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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
- Loading branch information