]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cgroup/cpuset: Set isolated_cpus_updating only if isolated_cpus is changed
authorWaiman Long <longman@redhat.com>
Sat, 21 Feb 2026 18:54:14 +0000 (13:54 -0500)
committerTejun Heo <tj@kernel.org>
Mon, 23 Feb 2026 20:41:09 +0000 (10:41 -1000)
commit14713ed9e9291813849018f32edbf5f6de362088
treeafa4d27ce68b42230e7334124eae560dc8c0870a
parent17b1860034c769c9f7669ae2612e91ef8fdde769
cgroup/cpuset: Set isolated_cpus_updating only if isolated_cpus is changed

As cpuset is updating HK_TYPE_DOMAIN housekeeping mask when there is
a change in the set of isolated CPUs, making this change is now more
costly than before.  Right now, the isolated_cpus_updating flag can be
set even if there is no real change in isolated_cpus. Put in additional
checks to make sure that isolated_cpus_updating is set only if there
is a real change in isolated_cpus.

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