rcu-tasks: Use spin_lock_rcu_node() and friends
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 9 Nov 2021 00:52:02 +0000 (16:52 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 9 Dec 2021 18:12:45 +0000 (10:12 -0800)
commit381a4f3b38603aab47e5500609d5ec733b5d0ecb
tree9eff51750357cf5d110e6477cf3f3a04a329c2d4
parent9b073de1c7a354af7cb7100952599dde461aee45
rcu-tasks: Use spin_lock_rcu_node() and friends

This commit renames the rcu_tasks_percpu structure's ->cbs_pcpu_lock
to ->lock and then uses spin_lock_rcu_node() and friends to acquire and
release this lock, preparing for upcoming commits that will spread the
grace-period process across multiple CPUs and kthreads.

[ paulmck: Apply feedback from kernel test robot. ]

Reported-by: Martin Lau <kafai@fb.com>
Cc: Neeraj Upadhyay <neeraj.iitr10@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tasks.h