From: Chen Ridong Date: Mon, 22 Sep 2025 13:02:32 +0000 (+0000) Subject: cpuset: remove impossible warning in update_parent_effective_cpumask X-Git-Tag: v6.18-rc1~198^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39431592e93530d7f543e3d7204a8f9a062e6ac7;p=thirdparty%2Fkernel%2Fstable.git cpuset: remove impossible warning in update_parent_effective_cpumask 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 Acked-by: Waiman Long Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 20dface3c3e0e..196645b38b248 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -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))