summaryrefslogtreecommitdiffstats
path: root/mcelog-rcu-splat.patch
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2012-02-14 10:09:54 -0500
committerJosh Boyer <jwboyer@redhat.com>2012-02-14 10:10:35 -0500
commit97821c04a8f0ffc3bf22570756a1e3e205c6f92c (patch)
tree4955e6e4ac8cf373fbbc85f2c7a556a6de3b6baa /mcelog-rcu-splat.patch
parent01ec5d65060213e62fec0a9da25ece165c793f8a (diff)
downloadkernel-97821c04a8f0ffc3bf22570756a1e3e205c6f92c.tar.gz
kernel-97821c04a8f0ffc3bf22570756a1e3e205c6f92c.tar.xz
kernel-97821c04a8f0ffc3bf22570756a1e3e205c6f92c.zip
Fix rhbzs 789641 and 789644
Fix RCU usage during cpu idle (rhbz 789641) Fix mce rcu splat (rhbz 789644)
Diffstat (limited to 'mcelog-rcu-splat.patch')
-rw-r--r--mcelog-rcu-splat.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcelog-rcu-splat.patch b/mcelog-rcu-splat.patch
new file mode 100644
index 000000000..12c1fe3ea
--- /dev/null
+++ b/mcelog-rcu-splat.patch
@@ -0,0 +1,15 @@
+diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
+index f22a9f7..f525f99 100644
+--- a/arch/x86/kernel/cpu/mcheck/mce.c
++++ b/arch/x86/kernel/cpu/mcheck/mce.c
+@@ -191,7 +191,7 @@ static void drain_mcelog_buffer(void)
+ {
+ unsigned int next, i, prev = 0;
+
+- next = rcu_dereference_check_mce(mcelog.next);
++ next = ACCESS_ONCE(mcelog.next);
+
+ do {
+ struct mce *m;
+
+ \ No newline at end of file