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: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3806204ca9017a2cf2d849430f26e2b62666f5b2;p=openwrt%2Fstaging%2Fblogic.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. */