Skip to content

Commit 22f8e41

Browse files
glemcoKAGA-KOKO
authored andcommitted
cgroup/cpuset: Rename update_unbound_workqueue_cpumask() to update_isolation_cpumasks()
update_unbound_workqueue_cpumask() updates unbound workqueues settings when there's a change in isolated CPUs, but it can be used for other subsystems requiring updated when isolated CPUs change. Generalise the name to update_isolation_cpumasks() to prepare for other functions unrelated to workqueues to be called in that spot. [longman: Change the function name to update_isolation_cpumasks()] Signed-off-by: Gabriele Monaco <gmonaco@redhat.com> Signed-off-by: Waiman Long <longman@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Chen Ridong <chenridong@huaweicloud.com> Acked-by: Frederic Weisbecker <frederic@kernel.org> Acked-by: Waiman Long <longman@redhat.com> Link: https://patch.msgid.link/20251120145653.296659-5-gmonaco@redhat.com
1 parent 4c2374e commit 22f8e41

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

kernel/cgroup/cpuset.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ static bool partition_xcpus_del(int old_prs, struct cpuset *parent,
13391339
return isolcpus_updated;
13401340
}
13411341

1342-
static void update_unbound_workqueue_cpumask(bool isolcpus_updated)
1342+
static void update_isolation_cpumasks(bool isolcpus_updated)
13431343
{
13441344
int ret;
13451345

@@ -1470,7 +1470,7 @@ static int remote_partition_enable(struct cpuset *cs, int new_prs,
14701470
list_add(&cs->remote_sibling, &remote_children);
14711471
cpumask_copy(cs->effective_xcpus, tmp->new_cpus);
14721472
spin_unlock_irq(&callback_lock);
1473-
update_unbound_workqueue_cpumask(isolcpus_updated);
1473+
update_isolation_cpumasks(isolcpus_updated);
14741474
cpuset_force_rebuild();
14751475
cs->prs_err = 0;
14761476

@@ -1511,7 +1511,7 @@ static void remote_partition_disable(struct cpuset *cs, struct tmpmasks *tmp)
15111511
compute_effective_exclusive_cpumask(cs, NULL, NULL);
15121512
reset_partition_data(cs);
15131513
spin_unlock_irq(&callback_lock);
1514-
update_unbound_workqueue_cpumask(isolcpus_updated);
1514+
update_isolation_cpumasks(isolcpus_updated);
15151515
cpuset_force_rebuild();
15161516

15171517
/*
@@ -1580,7 +1580,7 @@ static void remote_cpus_update(struct cpuset *cs, struct cpumask *xcpus,
15801580
if (xcpus)
15811581
cpumask_copy(cs->exclusive_cpus, xcpus);
15821582
spin_unlock_irq(&callback_lock);
1583-
update_unbound_workqueue_cpumask(isolcpus_updated);
1583+
update_isolation_cpumasks(isolcpus_updated);
15841584
if (adding || deleting)
15851585
cpuset_force_rebuild();
15861586

@@ -1943,7 +1943,7 @@ static int update_parent_effective_cpumask(struct cpuset *cs, int cmd,
19431943
WARN_ON_ONCE(parent->nr_subparts < 0);
19441944
}
19451945
spin_unlock_irq(&callback_lock);
1946-
update_unbound_workqueue_cpumask(isolcpus_updated);
1946+
update_isolation_cpumasks(isolcpus_updated);
19471947

19481948
if ((old_prs != new_prs) && (cmd == partcmd_update))
19491949
update_partition_exclusive_flag(cs, new_prs);
@@ -2968,7 +2968,7 @@ static int update_prstate(struct cpuset *cs, int new_prs)
29682968
else if (isolcpus_updated)
29692969
isolated_cpus_update(old_prs, new_prs, cs->effective_xcpus);
29702970
spin_unlock_irq(&callback_lock);
2971-
update_unbound_workqueue_cpumask(isolcpus_updated);
2971+
update_isolation_cpumasks(isolcpus_updated);
29722972

29732973
/* Force update if switching back to member & update effective_xcpus */
29742974
update_cpumasks_hier(cs, &tmpmask, !new_prs);

0 commit comments

Comments
 (0)