From: Paul E. McKenney Date: Fri, 1 Apr 2011 14:15:14 +0000 (-0700) Subject: rcu: create new rcu_access_index() and use in mce X-Git-Tag: v2.6.39-rc2~22^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4dd99250dc49031e6a92a895dbcc230a4832083;p=pandora-kernel.git 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 Tested-by: Zdenek Kabelac --- Reading git-diff-tree failed