• Paul E. McKenney's avatar
    rcu-tasks: *_ONCE() for rcu_tasks_cbs_head · fcb73812
    Paul E. McKenney authored
    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: default avatarPaul E. McKenney <paulmck@kernel.org>
    fcb73812
update.c 29 KB