x86/mce: Fix RCU lockdep splats
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 5 Mar 2010 23:03:27 +0000 (15:03 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Mar 2010 12:38:02 +0000 (13:38 +0100)
commitf56e8a0765cc4374e02f4e3a79e2427b5096b075
tree2139fc459bfe2d7d72843d4fa0fa946f0cd33cd4
parent007b09243b099811124f69d492adeebe9e439f96
x86/mce: Fix RCU lockdep splats

Create an rcu_dereference_check_mce() that checks for RCU-sched
read side and mce_read_mutex being held on update side.  Replace
uses of rcu_dereference() in arch/x86/kernel/cpu/mcheck/mce.c
with this new macro.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.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: rostedt@goodmis.org
Cc: Valdis.Kletnieks@vt.edu
Cc: dhowells@redhat.com
LKML-Reference: <1267830207-9474-3-git-send-email-paulmck@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/mcheck/mce.c