]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cpuset: remove impossible warning in update_parent_effective_cpumask
authorChen Ridong <chenridong@huawei.com>
Mon, 22 Sep 2025 13:02:32 +0000 (13:02 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 22 Sep 2025 22:57:46 +0000 (12:57 -1000)
If the parent is not a valid partition, an error will be returned before
any partition update command is processed. This means the
WARN_ON_ONCE(!is_partition_valid(parent)) can never be triggered, so
it is safe to remove.

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

index 20dface3c3e0eccdc1491d77b3fc4ab23e5de0e5..196645b38b248b26019154a3103ff237328c2d19 100644 (file)
@@ -1923,7 +1923,6 @@ static int update_parent_effective_cpumask(struct cpuset *cs, int cmd,
                 * A partition error happens when parent has tasks and all
                 * its effective CPUs will have to be distributed out.
                 */
-               WARN_ON_ONCE(!is_partition_valid(parent));
                if (nocpu) {
                        part_error = PERR_NOCPUS;
                        if (is_partition_valid(cs))