From nobody Sat Jul 25 22:03:04 2026 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35A213E9F9D for ; Mon, 13 Jul 2026 10:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783940303; cv=none; b=PXLFDg43YOalRDLmAO6QAE0y3yTsKvJXrzAfV7xnJ3vX4uBjU1+JDjkW6oMInnetPzF+dvX5UpwEwUHL4s2j1p4A4Z/Co1FjfW2IbNn80WYf/BtEh5nIM3lbD6i2YZYrlywz1bXO6BFeTpRkr8YNUj9JcsbIMdsy5XMfSDVdI9U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783940303; c=relaxed/simple; bh=cyxGhybvhbXzgWBd3BsaDSVLO0R67v3Nw1xb+FLjukI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B36AnGj540tp5Ye+mDwD/CbO3TeGu8vKHVvwK3yoYLIrUK0MN0nXyy7ExwT5KOFF4JsziAJMRl0ztHpA44GrcukBNo7/HyeIICkszPV5y9t0R7ng43bmeYuFPWpiSG8TV9pcpYZ4PmDIX/2wNFdDAz9QTUeb84aitS5ERIPI/6s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=JJuqfFV2; arc=none smtp.client-ip=95.215.58.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="JJuqfFV2" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783940296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mKM2Ncv1mRF5joFKStBfzuX4T1eupplrOAvc06izpnM=; b=JJuqfFV2E1gQJrN5HaotXAGkh+VxSmLBFDq5tx2taFdnk3WEG0zE/a+z/8AkboHr8uR60w cusKrjb9CzZO0QMMY4J/TdTf1V28HCwXV9fkKluznST5+fQv/1czTifp764SVW7YvckmUi bRH5uhsC6eELAcAfAs7tBGj9x0cP1Go= From: Guopeng Zhang To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot Cc: Ingo Molnar , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , Christian Loehle , linux-kernel@vger.kernel.org, Guopeng Zhang Subject: [RESEND PATCH] sched/deadline: Exclude special DL entities from bandwidth moves Date: Mon, 13 Jul 2026 18:57:39 +0800 Message-ID: <20260713105739.3396340-1-guopeng.zhang@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: Guopeng Zhang SUGOV special DL entities use fake/unused bandwidth. They are already excluded from regular DL admission control, affinity admission checks, rq bandwidth accounting, and root-domain rebuild accounting. dl_task_needs_bw_move() misses the same exclusion. As a result, set_cpus_allowed_dl() and cpuset attach may treat a special DL entity as requiring a root-domain bandwidth move when its affinity mask no longer intersects the source root domain. Return false for special DL entities so root-domain bandwidth move accounting follows the rest of the SUGOV special-entity handling. Reviewed-by: Christian Loehle Acked-by: Juri Lelli Signed-off-by: Guopeng Zhang --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index a3003b0f4522..8ba01a0ce36b 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -3354,7 +3354,7 @@ static void set_cpus_allowed_dl(struct task_struct *p, bool dl_task_needs_bw_move(struct task_struct *p, const struct cpumask *new_mask) { - if (!dl_task(p)) + if (!dl_task(p) || dl_entity_is_special(&p->dl)) return false; =20 return !cpumask_intersects(task_rq(p)->rd->span, new_mask); --=20 2.43.0