rcu, ftrace: Fix RCU lockdep splat in ftrace_perf_buf_prepare()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 4 Mar 2010 01:50:18 +0000 (17:50 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Mar 2010 11:07:35 +0000 (12:07 +0100)
commit8d53dd546f36073e0d29b0cfc24c665db301e3e7
tree1cd2582e669fe2ff580ddc707705e5efb18251de
parent99ee4ca746dda71326db7645463b4075ac1d665c
rcu, ftrace: Fix RCU lockdep splat in ftrace_perf_buf_prepare()

Change the pair of rcu_dereference() calls in
ftrace_perf_buf_prepare() to rcu_dereference_sched().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: laijs@cn.fujitsu.com
Cc: dipankar@in.ibm.com
Cc: mathieu.desnoyers@polymtl.ca
Cc: josh@joshtriplett.org
Cc: dvhltc@us.ibm.com
Cc: niv@us.ibm.com
Cc: peterz@infradead.org
Cc: Valdis.Kletnieks@vt.edu
Cc: dhowells@redhat.com
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1267667418-32233-3-git-send-email-paulmck@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/trace/ftrace.h
kernel/trace/trace_event_profile.c