rcu: Add READ_ONCE() to rcu_do_batch() access to rcu_kick_kthreads
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 24 Jun 2020 01:04:45 +0000 (18:04 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:36:07 +0000 (18:36 -0700)
commitfe63b723cc7ca3a91ea91274e0f2cba29452b3fa
treeaab109d4dd32f14442ef1a483466e2a6fa99027f
parenta2b354b9950bb859d8d959f951dda26725b041fb
rcu: Add READ_ONCE() to rcu_do_batch() access to rcu_kick_kthreads

Given that sysfs can change the value of rcu_kick_kthreads at any time,
this commit adds a READ_ONCE() to the sole access to that variable.

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