OSDN Git Service

rcutorture: Fix stray access to rcu_fwd_cb_nodelay
authorPaul E. McKenney <paulmck@kernel.org>
Sat, 21 Dec 2019 19:23:50 +0000 (11:23 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 21 Feb 2020 00:03:31 +0000 (16:03 -0800)
commit102c14d2f87976e8390d2cb892ccd14e3532e020
tree0db30da090f575b92d3082e570419783a129675b
parent202489101f2e6cee3f6dffc087a4abd5fdfcebda
rcutorture: Fix stray access to rcu_fwd_cb_nodelay

The rcu_fwd_cb_nodelay variable suppresses excessively long read-side
delays while carrying out an rcutorture forward-progress test.  As such,
it is accessed both by readers and updaters, and most of the accesses
therefore use *_ONCE().  Except for one in rcu_read_delay(), which this
commit fixes.

This data race was reported by KCSAN.  Not appropriate for backporting
due to this being rcutorture.

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