rcu: Mark lockless ->qsmask read in rcu_check_boost_fail()
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 3 Jun 2021 17:17:36 +0000 (10:17 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 6 Aug 2021 20:41:48 +0000 (13:41 -0700)
commitd9ee962feb4f26d4eac0042861457d941aa2df5f
tree1b549a32b07d72c725c7113bb7ec24fe4337c198
parent65bfdd36c113f5d579a382d8f2847210ea4cdca6
rcu: Mark lockless ->qsmask read in rcu_check_boost_fail()

Accesses to ->qsmask are normally protected by ->lock, but there is an
exception in the diagnostic code in rcu_check_boost_fail().  This commit
therefore applies data_race() to this access to avoid KCSAN complaining
about the C-language writes protected by ->lock.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_stall.h