]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9272a0dee5ab1d4e5ed88687940664ca7a9d165
tree2139fc459bfe2d7d72843d4fa0fa946f0cd33cd4
parent1553612f82c3e2e6a429a079fdbe4367cb0c4cef
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