mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
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 <[email protected]> Tested-by: Zdenek Kabelac <[email protected]>