[PATCH tip/core/rcu 0/3] rcu: fix !PREEMPT, __mpol_dup(), and ftrace_perf_buf_prepare() RCU lockdep splats

Paul E. McKenney
2010-03-04T01:50:11Z

Hello!

This patch fixes three RCU lockdep issues:

1. Makes rcu_read_lock_sched_held() correctly handle !PREEMPT
kernels.

2. Suppresses __mpol_dup() false positive.

3. Converts a pair of rcu_dereference() calls in
ftrace_perf_buf_prepare() to rcu_dereference_sched().

There are probably more where these came from. ;-)

Thanx, Paul

------------------------------------------------------------------------

include/linux/rcupdate.h | 15 ++++++++++++++-
include/trace/ftrace.h | 4 ++--
kernel/trace/trace_event_profile.c | 5 ++---
mm/mempolicy.c | 3 ++-
4 files changed, 20 insertions(+), 7 deletions(-)