]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Mark rcu_state.gp_seq to detect concurrent writes
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 10 Feb 2020 17:58:37 +0000 (09:58 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Sat, 21 Mar 2020 23:13:39 +0000 (16:13 -0700)
commit0ad618472267ad762f51a5ba1a8c7d945d82a156
treeccbf206a73a01493b72660bb41c4db5ca09f42e4
parenta6adb82cdc5f2e318871b5a67e12083dbadfffb2
rcu: Mark rcu_state.gp_seq to detect concurrent writes

The rcu_state structure's gp_seq field is only to be modified by the RCU
grace-period kthread, which is single-threaded.  This commit therefore
enlists KCSAN's help in enforcing this restriction.

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