]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Add WRITE_ONCE() to rcu_state ->gp_start
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 20 Jan 2020 23:29:04 +0000 (15:29 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 20 Feb 2020 23:58:23 +0000 (15:58 -0800)
commit14a2266758459b1e4974c2c3f36401a2851ac7ac
tree675ba755b0405c7967b28e4235c56eca27a7f699
parenta388e9b7045137b83063fda35a90150f3d13e2b0
rcu: Add WRITE_ONCE() to rcu_state ->gp_start

The rcu_state structure's ->gp_start field is read locklessly, so this
commit adds the WRITE_ONCE() to an update in order to provide proper
documentation and READ_ONCE()/WRITE_ONCE() pairing.

This data race was reported by KCSAN.  Not appropriate for backporting
due to failure being unlikely.

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