]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cgroup/cpuset: Rename update_unbound_workqueue_cpumask() to update_isolation_cpumasks()
authorGabriele Monaco <gmonaco@redhat.com>
Thu, 20 Nov 2025 14:56:50 +0000 (15:56 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 Nov 2025 19:17:31 +0000 (20:17 +0100)
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
kernel/cgroup/cpuset.c

index 27adb04df675d4521ae1589632a1831892b16422..cf34623fe66f26925480929de085e06850fe7746 100644 (file)
@@ -1339,7 +1339,7 @@ static bool partition_xcpus_del(int old_prs, struct cpuset *parent,
        return isolcpus_updated;
 }
 
-static void update_unbound_workqueue_cpumask(bool isolcpus_updated)
+static void update_isolation_cpumasks(bool isolcpus_updated)
 {
        int ret;
 
@@ -1470,7 +1470,7 @@ static int remote_partition_enable(struct cpuset *cs, int new_prs,
        list_add(&cs->remote_sibling, &remote_children);
        cpumask_copy(cs->effective_xcpus, tmp->new_cpus);
        spin_unlock_irq(&callback_lock);
-       update_unbound_workqueue_cpumask(isolcpus_updated);
+       update_isolation_cpumasks(isolcpus_updated);
        cpuset_force_rebuild();
        cs->prs_err = 0;
 
@@ -1511,7 +1511,7 @@ static void remote_partition_disable(struct cpuset *cs, struct tmpmasks *tmp)
        compute_effective_exclusive_cpumask(cs, NULL, NULL);
        reset_partition_data(cs);
        spin_unlock_irq(&callback_lock);
-       update_unbound_workqueue_cpumask(isolcpus_updated);
+       update_isolation_cpumasks(isolcpus_updated);
        cpuset_force_rebuild();
 
        /*
@@ -1580,7 +1580,7 @@ static void remote_cpus_update(struct cpuset *cs, struct cpumask *xcpus,
        if (xcpus)
                cpumask_copy(cs->exclusive_cpus, xcpus);
        spin_unlock_irq(&callback_lock);
-       update_unbound_workqueue_cpumask(isolcpus_updated);
+       update_isolation_cpumasks(isolcpus_updated);
        if (adding || deleting)
                cpuset_force_rebuild();
 
@@ -1943,7 +1943,7 @@ write_error:
                WARN_ON_ONCE(parent->nr_subparts < 0);
        }
        spin_unlock_irq(&callback_lock);
-       update_unbound_workqueue_cpumask(isolcpus_updated);
+       update_isolation_cpumasks(isolcpus_updated);
 
        if ((old_prs != new_prs) && (cmd == partcmd_update))
                update_partition_exclusive_flag(cs, new_prs);
@@ -2968,7 +2968,7 @@ out:
        else if (isolcpus_updated)
                isolated_cpus_update(old_prs, new_prs, cs->effective_xcpus);
        spin_unlock_irq(&callback_lock);
-       update_unbound_workqueue_cpumask(isolcpus_updated);
+       update_isolation_cpumasks(isolcpus_updated);
 
        /* Force update if switching back to member & update effective_xcpus */
        update_cpumasks_hier(cs, &tmpmask, !new_prs);