]> git.ipfire.org Git - thirdparty/linux.git/commit
cgroup/cpuset: Move housekeeping_update()/rebuild_sched_domains() together
authorWaiman Long <longman@redhat.com>
Sat, 21 Feb 2026 18:54:16 +0000 (13:54 -0500)
committerTejun Heo <tj@kernel.org>
Mon, 23 Feb 2026 20:42:08 +0000 (10:42 -1000)
commit3bfe47967191f42d17510713b31a47d9284b8c5a
tree5a7723d75be745f6f7f9266198a3b0065ccfee6f
parent5e6aac573cc4cc8e62aebf880b824e219a5ff557
cgroup/cpuset: Move housekeeping_update()/rebuild_sched_domains() together

With the latest changes in sched/isolation.c, rebuild_sched_domains*()
requires the HK_TYPE_DOMAIN housekeeping cpumask to be properly
updated first, if needed, before the sched domains can be
rebuilt. So the two naturally fit together. Do that by creating a new
update_hk_sched_domains() helper to house both actions.

The name of the isolated_cpus_updating flag to control the
call to housekeeping_update() is now outdated. So change it to
update_housekeeping to better reflect its purpose. Also move the call
to update_hk_sched_domains() to the end of cpuset and hotplug operations
before releasing the cpuset_mutex.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c