rcu-tasks: Mark RCU Tasks accesses to current->rcu_tasks_idle_cpu
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 11 Oct 2023 16:45:54 +0000 (09:45 -0700)
committerNeeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
Mon, 11 Dec 2023 20:52:47 +0000 (02:22 +0530)
commit18966f7b9458d3b19412fe9dfb421ab59401bfe1
tree366bb0f9955c056d16d28bfdde2e257eff2eb147
parent98b1cc82c4affc16f5598d4fa14b1858671b2263
rcu-tasks: Mark RCU Tasks accesses to current->rcu_tasks_idle_cpu

The task_struct structure's ->rcu_tasks_idle_cpu can be concurrently
read and written from the RCU Tasks grace-period kthread and from the
CPU on which the task_struct structure's task is running.  This commit
therefore marks the accesses appropriately.

Reported-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
kernel/rcu/tasks.h