summaryrefslogtreecommitdiff
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <frederic@kernel.org>2024-01-12 16:46:17 +0100
committerSasha Levin <sashal@kernel.org>2026-03-04 07:19:21 -0500
commitcb9eaff659dd07b872d5e0a6029ecb63c3168e00 (patch)
treed4c85bd84fa245e056d5c59916a3ebf6c21b19b8 /kernel/rcu/tree.c
parent7b57ada854b32310f224abd61bcfec2d5790ff0a (diff)
downloadlinux-cb9eaff659dd07b872d5e0a6029ecb63c3168e00.tar.gz
linux-cb9eaff659dd07b872d5e0a6029ecb63c3168e00.tar.bz2
linux-cb9eaff659dd07b872d5e0a6029ecb63c3168e00.zip
rcu: s/boost_kthread_mutex/kthread_mutex
[ Upstream commit 7836b270607676ed1c0c6a4a840a2ede9437a6a1 ] This mutex is currently protecting per node boost kthreads creation and affinity setting across CPU hotplug operations. Since the expedited kworkers will soon be split per node as well, they will be subject to the same concurrency constraints against hotplug. Therefore their creation and affinity tuning operations will be grouped with those of boost kthreads and then rely on the same mutex. To prepare for that, generalize its name. Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Reviewed-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Boqun Feng <boqun.feng@gmail.com> Stable-dep-of: d41e37f26b31 ("rcu: Fix rcu_read_unlock() deadloop due to softirq") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r--kernel/rcu/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 607b2e68fa4c..43133dff2a04 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -4874,7 +4874,7 @@ static void __init rcu_init_one(void)
init_waitqueue_head(&rnp->exp_wq[2]);
init_waitqueue_head(&rnp->exp_wq[3]);
spin_lock_init(&rnp->exp_lock);
- mutex_init(&rnp->boost_kthread_mutex);
+ mutex_init(&rnp->kthread_mutex);
raw_spin_lock_init(&rnp->exp_poll_lock);
rnp->exp_seq_poll_rq = RCU_GET_STATE_COMPLETED;
INIT_WORK(&rnp->exp_poll_wq, sync_rcu_do_polled_gp);