rcu: Use data_race() for RCU expedited CPU stall-warning prints
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 9 Feb 2020 10:35:22 +0000 (02:35 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:04:37 +0000 (11:04 -0700)
commit654db05cee8186cf9438d94ef32a4f9ffe964e57
tree3261c4b8ef0b84f3f5142b74847ea2fc1ce4190a
parent353159365e725fab7b3bf2817bec0ecd16706a38
rcu: Use data_race() for RCU expedited CPU stall-warning prints

Although the accesses used to determine whether or not an expedited
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_exp.h