From: Paul E. McKenney Date: Wed, 9 May 2012 22:44:42 +0000 (-0700) Subject: rcu: Add ACCESS_ONCE() to ->qlen accesses X-Git-Tag: v3.6-rc1~168^2^2~2^3~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d1fb395f6dbc07b36285bbedcf01a73b57f7cb5;p=pandora-kernel.git rcu: Add ACCESS_ONCE() to ->qlen accesses The _rcu_barrier() function accesses other CPUs' rcu_data structure's ->qlen field without benefit of locking. This commit therefore adds the required ACCESS_ONCE() wrappers around accesses and updates that need it. ACCESS_ONCE() is not needed when a CPU accesses its own ->qlen, or in code that cannot run while _rcu_barrier() is sampling ->qlen fields. Signed-off-by: Paul E. McKenney Reviewed-by: Josh Triplett --- Reading git-diff-tree failed