]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5de22420738b55b14288bac49fa47636fe8f8e5a
treed850c9eb39e66f2fb597305ddcb11707e77fcdb0
parent858edaedc8d90a1aa6a4cdef34af7d2215e92245
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