]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cgroup/cpuset: Streamline rm_siblings_excl_cpus()
authorWaiman Long <longman@redhat.com>
Mon, 12 Jan 2026 16:00:17 +0000 (11:00 -0500)
committerTejun Heo <tj@kernel.org>
Mon, 12 Jan 2026 19:01:40 +0000 (09:01 -1000)
commit18bc2425a877c45b59c0972df30afb46084f8816
treea2f22231136e3ff4348db527b6476e02d9a8ca6e
parent269679bdd17cdd4dc3f1f2448f76554932d7de3f
cgroup/cpuset: Streamline rm_siblings_excl_cpus()

If exclusive_cpus is set, effective_xcpus must be a subset of
exclusive_cpus. Currently, rm_siblings_excl_cpus() checks both
exclusive_cpus and effective_xcpus consecutively. It is simpler
to check only exclusive_cpus if non-empty or just effective_xcpus
otherwise.

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