From: Paul E. McKenney Date: Mon, 20 Apr 2015 01:16:02 +0000 (-0700) Subject: mce: Stop using array-index-based RCU primitives X-Git-Tag: omap-for-v4.3/legacy-v2-signed~212^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e90328b87eeff91574c18815bd6991b03bd6ecc0;p=pandora-kernel.git mce: Stop using array-index-based RCU primitives Because mce is arch-specific x86 code, there is little or no performance benefit of using rcu_dereference_index_check() over using smp_load_acquire(). It also turns out that mce is the only place that array-index-based RCU is used, and it would be convenient to drop this portion of the RCU API. This patch therefore changes rcu_dereference_index_check() uses to smp_load_acquire(), but keeping the lockdep diagnostics, and also changes rcu_access_index() uses to READ_ONCE(). Signed-off-by: Paul E. McKenney Cc: linux-edac@vger.kernel.org Cc: Tony Luck Acked-by: Borislav Petkov --- Reading git-diff-tree failed