]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: create new rcu_access_index() and use in mce
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 1 Apr 2011 14:15:14 +0000 (07:15 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 1 Apr 2011 14:27:31 +0000 (07:27 -0700)
commitf2ee0d49b9ba668186a6dac4ee44584e8e1b45e9
tree3d0b6f45620f66044400ea14a6af019bf0af67e7
parent8fee371925e9b3313e55812fd93cc1adaea36399
rcu: create new rcu_access_index() and use in mce

The MCE subsystem needs to sample an RCU-protected index outside of
any protection for that index.  If this was a pointer, we would use
rcu_access_pointer(), but there is no corresponding rcu_access_index().
This commit therefore creates an rcu_access_index() and applies it
to MCE.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Zdenek Kabelac <zkabelac@redhat.com>
arch/x86/kernel/cpu/mcheck/mce.c
include/linux/rcupdate.h