OSDN Git Service

rcu: Add WRITE_ONCE() to rcu_node ->boost_tasks
authorPaul E. McKenney <paulmck@kernel.org>
Sat, 4 Jan 2020 18:44:41 +0000 (10:44 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:01:16 +0000 (11:01 -0700)
commit5822b8126ff01e0baaf7d5168adc4ac8aeae088c
tree8d908940c9a3cfa446b01d68465814795c7fa6de
parentb68c6146512d92f6d570d26e1873497ade2cc4cb
rcu: Add WRITE_ONCE() to rcu_node ->boost_tasks

The rcu_node structure's ->boost_tasks 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_plugin.h