Browse Source

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 <paulmck@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Paul E. McKenney 17 years ago
parent
commit
3806204ca9
1 changed files with 0 additions and 3 deletions
  1. 0 3
      arch/x86/kernel/mce_64.c

+ 0 - 3
arch/x86/kernel/mce_64.c

@@ -76,9 +76,6 @@ void mce_log(struct mce *mce)
 	wmb();
 	wmb();
 	for (;;) {
 	for (;;) {
 		entry = rcu_dereference(mcelog.next);
 		entry = rcu_dereference(mcelog.next);
-		/* The rmb forces the compiler to reload next in each
-		    iteration */
-		rmb();
 		for (;;) {
 		for (;;) {
 			/* When the buffer fills up discard new entries. Assume
 			/* When the buffer fills up discard new entries. Assume
 			   that the earlier errors are the more interesting. */
 			   that the earlier errors are the more interesting. */