rcu: Mark rcu_state.ncpus to detect concurrent writes
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 10 Feb 2020 13:29:58 +0000 (05:29 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:01:15 +0000 (11:01 -0700)
commit2f08469563550d15cb08a60898d3549720600eee
tree57dfe47e476fbe1457f801ab439b41cf83291d49
parent4f58820fd710e0563e22420c07c03c5ccec948bf
rcu: Mark rcu_state.ncpus to detect concurrent writes

The rcu_state structure's ncpus field is only to be modified by the
CPU-hotplug CPU-online code path, 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