]> git.ipfire.org Git - thirdparty/linux.git/commit
cgroup/cpuset: Globally track isolated_cpus update
authorWaiman Long <longman@redhat.com>
Wed, 5 Nov 2025 04:38:48 +0000 (23:38 -0500)
committerTejun Heo <tj@kernel.org>
Wed, 5 Nov 2025 17:00:33 +0000 (07:00 -1000)
commitbe04e96ba911fac1dc4c7f89ebb42018d167043f
tree65a518545a8b5aaba5e7acc2dfebed12a9439db2
parentb1034a690129acd8995137bf4462470b4a2aa690
cgroup/cpuset: Globally track isolated_cpus update

The current cpuset code passes a local isolcpus_updated flag around in a
number of functions to determine if external isolation related cpumasks
like wq_unbound_cpumask should be updated. It is a bit cumbersome and
makes the code more complex. Simplify the code by using a global boolean
flag "isolated_cpus_updating" to track this. This flag will be set in
isolated_cpus_update() and cleared in update_isolation_cpumasks().

No functional change is expected.

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