rcu: Use data_race() for RCU CPU stall-warning prints
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 9 Feb 2020 10:29:36 +0000 (02:29 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:01:16 +0000 (11:01 -0700)
commit47fbb074536ecca5e0af3dcce340954c09ed4d1e
treed850c9eb39e66f2fb597305ddcb11707e77fcdb0
parent5822b8126ff01e0baaf7d5168adc4ac8aeae088c
rcu: Use data_race() for RCU CPU stall-warning prints

Although the accesses used to determine whether or not a stall should
be printed are an integral part of the concurrency algorithm governing
use of the corresponding variables, the values that are simply printed
are ancillary.  As such, it is best to use data_race() for these accesses
in order to provide the greatest latitude in the use of KCSAN for the
other accesses that are an integral part of the algorithm.  This commit
therefore changes the relevant uses of READ_ONCE() to data_race().

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