From nobody Mon Jun 8 16:28:10 2026 Received: from out-170.mta1.migadu.com (out-170.mta1.migadu.com [95.215.58.170]) (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 69EB334404B for ; Thu, 28 May 2026 06:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779951225; cv=none; b=MTR7DFjQ1kM1cnh6IT0zELWYWk1cfO8cziPwk6Od5Di3MmOWbQpLAjYFGSxcbluz4j6vwLzC10fex4cmylmuLnc7oRfnqEeYtejqCeUMWwRQ7LOGSxGgGWkXqPq4p21qnSe2bwbTT7lKva8gSK2vhnyWbpE4I7UBhkdmPfWx5j4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779951225; c=relaxed/simple; bh=IjB2MLjWS5eCXJPnQQJiB+7Po2csEySBhfJxGWr4oBA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O+vIZxZN9dxsoxzD4PjQGCZszw0BuF97iYV5dKpTjywYWoJr8H02088TtweTHs0YjyrMNNOffeK6WtCMD5qRjNxIA6Ee73sjMzu8PCkEGDDWESPkqVqecAUsTOsm+1zVIrrXIq6iAWUmrUA2jfRBG3+xq6qQQdCfyK63uGE0BdA= 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=kYp98XYc; arc=none smtp.client-ip=95.215.58.170 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="kYp98XYc" 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=1779951220; 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=XU+bmgF7sB9Nz+jeMqv2xnVF9MQMvzeaCfKZcuES1B0=; b=kYp98XYcwxgc2tNS/xQ5NwVYreejN61qWFMe1OGK6jcf4Wwc8/hjt9ZYf4K0FQshgX2pJ+ ELhQ2+z525cKkJyX8Omx/FElQrEEl3+rmqG/NYoLJeLFXM+fGtMNFMyiH/HqELdSvz2VHI nQHZHCYI0y90XeUKATS8mHsr04RlzJk= From: Guopeng Zhang To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot Cc: Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , linux-kernel@vger.kernel.org, Guopeng Zhang Subject: [PATCH] sched/deadline: Exclude special DL entities from bandwidth moves Date: Thu, 28 May 2026 14:53:24 +0800 Message-ID: <20260528065324.1303334-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. Signed-off-by: Guopeng Zhang Acked-by: Juri Lelli Reviewed-by: Christian Loehle --- 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 ddfd6bc63ab1..3653166caa69 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -3142,7 +3142,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