commit | 20f126164f840a743e03f35aa771075b6496f156 | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@kernel.org> | Mon Jan 06 11:59:58 2020 -0800 |
committer | Paul E. McKenney <paulmck@kernel.org> | Mon Jan 06 11:59:58 2020 -0800 |
tree | 84a905ef62065f871f40a707c4d35c3cc2b4098d | |
parent | a5df688aedcb4dd1a0c08af9a49858917daa9b2e [diff] |
rcu-tasks: *_ONCE() for rcu_tasks_cbs_head The RCU tasks list of callbacks, rcu_tasks_cbs_head, is sampled locklessly by rcu_tasks_kthread() when waiting for work to do. This commit therefore applies READ_ONCE() to that lockless sampling and WRITE_ONCE() to the single potential store outside of rcu_tasks_kthread. 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>