rcu: Mark rcu_cpu_kthread() accesses to ->rcu_cpu_has_work
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 7 Apr 2023 23:47:34 +0000 (16:47 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 11 May 2023 20:42:39 +0000 (13:42 -0700)
commita24c1aab652ebacf9ea62470a166514174c96fe1
tree0cc5ee341800288924cc70a2a78fd4bfd9d698fc
parent9146eb25495ea8bfb5010192e61e3ed5805ce9ef
rcu: Mark rcu_cpu_kthread() accesses to ->rcu_cpu_has_work

The rcu_data structure's ->rcu_cpu_has_work field can be modified by
any CPU attempting to wake up the rcuc kthread.  Therefore, this commit
marks accesses to this field from the rcu_cpu_kthread() function.

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.c