rcu: Fix RCU lockdep splat in set_task_cpu on fork path
authorPeter Zijlstra <peterz@infradead.org>
Wed, 21 Apr 2010 20:02:07 +0000 (13:02 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 30 Apr 2010 10:03:17 +0000 (12:03 +0200)
commit8b08ca52f5942c21564bbb90ccfb61053f2c26a1
tree3fbba8114fdad7d077390c206ae17c38fbc85cb8
parent4b402210486c6414fe5fbfd85934a0a22da56b04
rcu: Fix RCU lockdep splat in set_task_cpu on fork path

Add an RCU read-side critical section to suppress this false
positive.

Located-by: Eric Paris <eparis@parisplace.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
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: rostedt@goodmis.org
Cc: Valdis.Kletnieks@vt.edu
Cc: dhowells@redhat.com
Cc: eric.dumazet@gmail.com
LKML-Reference: <1271880131-3951-1-git-send-email-paulmck@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c