x86/mce: Fix RCU lockdep splats
authorPaul E. McKenney <[email protected]>
Fri, 5 Mar 2010 23:03:27 +0000 (15:03 -0800)
committerIngo Molnar <[email protected]>
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 <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <1267830207[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/mcheck/mce.c