From: Paul E. McKenney Date: Wed, 17 Oct 2007 06:26:05 +0000 (-0700) Subject: Remove workaround for unimmunized rcu_dereference from mce_log() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3806204ca9017a2cf2d849430f26e2b62666f5b2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Remove workaround for unimmunized rcu_dereference from mce_log() Remove the rmb() from mce_log(), since the immunized version of rcu_dereference() makes it unnecessary. Signed-off-by: Paul E. McKenney Cc: Ingo Molnar Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/kernel/mce_64.c b/arch/x86/kernel/mce_64.c index a66d607f5b92..97d2b757d6bd 100644 --- a/arch/x86/kernel/mce_64.c +++ b/arch/x86/kernel/mce_64.c @@ -76,9 +76,6 @@ void mce_log(struct mce *mce) wmb(); for (;;) { entry = rcu_dereference(mcelog.next); - /* The rmb forces the compiler to reload next in each - iteration */ - rmb(); for (;;) { /* When the buffer fills up discard new entries. Assume that the earlier errors are the more interesting. */