]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cgroup/cpuset: Don't fail cpuset.cpus change in v2
authorWaiman Long <longman@redhat.com>
Mon, 12 Jan 2026 16:00:19 +0000 (11:00 -0500)
committerTejun Heo <tj@kernel.org>
Mon, 12 Jan 2026 19:02:14 +0000 (09:02 -1000)
commit6e6f13f6d5095f3a432da421e78f4d7d51ef39c8
tree7f3ea66c33291e5f412933c03b64b4472c32c1e8
parenta1a01793ae1f6f99fd7174988d49b43cd1cb36c3
cgroup/cpuset: Don't fail cpuset.cpus change in v2

Commit fe8cd2736e75 ("cgroup/cpuset: Delay setting of CS_CPU_EXCLUSIVE
until valid partition") introduced a new check to disallow the setting
of a new cpuset.cpus.exclusive value that is a superset of a sibling's
cpuset.cpus value so that there will at least be one CPU left in the
sibling in case the cpuset becomes a valid partition root. This new
check does have the side effect of failing a cpuset.cpus change that
make it a subset of a sibling's cpuset.cpus.exclusive value.

With v2, users are supposed to be allowed to set whatever value they
want in cpuset.cpus without failure. To maintain this rule, the check
is now restricted to only when cpuset.cpus.exclusive is being changed
not when cpuset.cpus is changed.

The cgroup-v2.rst doc file is also updated to reflect this change.

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