From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 804983358B0; Mon, 20 Apr 2026 15:52:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776700348; cv=none; b=dsCD1ndcwHpDUtH8hTpfvbCs7+6QfO+Yzvc4nFuA3hOYA9xweFmtYmQOoz5UY5dNoMJLt1fOfAffPHr+Tu+XXQdDDM3XicAt8U/cvWhVmOPGY6A6q627JwdoDonR8+55X4YlmMXNvh7190CD1j+/JupljZLgh+QN19ucSTRMpOw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776700348; c=relaxed/simple; bh=MPJo0ojCOlizG9KlHr5P9TkczhZniLzPHwkTy74qyAw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RBtSc5NCZyUvRa4+m3xM6zv5FWmf4kzU5xVOLm8TpFBJabGg+YyhUeYenAb114MB0yRRJ36uOb0TsWl0Te6usF9zPoHfLjd82UkX9uw9R7M6nPYPECBg8HHKSGMNihtzW9QZ7fEoBPNn9i7Va4+XMYtOTx+aVaM+L1PHVJuvwkI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a3eM/xtx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="a3eM/xtx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 180E8C19425; Mon, 20 Apr 2026 15:52:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776700348; bh=MPJo0ojCOlizG9KlHr5P9TkczhZniLzPHwkTy74qyAw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a3eM/xtxMM4E/AjH1OYkCR2q/ZL0W2+7j3t0NsnWvh8KsjLjOw87Y9dZjmcmIEojp GyqwnUPa25CG1Czv2i4Q9fZs2U71fWbo0BK0nHziRkME1Nc4xdzSa6Q4SXeSrL3CsD PdYj4JTHfYdc0e+Cxwl0FlYAIG/J/iwtKBt8zcsM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, John Stultz , "Peter Zijlstra (Intel)" , Juri Lelli , Sasha Levin Subject: [PATCH 6.19 136/220] sched/deadline: Use revised wakeup rule for dl_server Date: Mon, 20 Apr 2026 17:41:17 +0200 Message-ID: <20260420153938.922892964@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260420153934.013228280@linuxfoundation.org> References: <20260420153934.013228280@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Zijlstra [ Upstream commit 14a857056466be9d3d907a94e92a704ac1be149b ] John noted that commit 115135422562 ("sched/deadline: Fix 'stuck' dl_server") unfixed the issue from commit a3a70caf7906 ("sched/deadline: Fix dl_server behaviour"). The issue in commit 115135422562 was for wakeups of the server after the deadline; in which case you *have* to start a new period. The case for a3a70caf7906 is wakeups before the deadline. Now, because the server is effectively running a least-laxity policy, it means that any wakeup during the runnable phase means dl_entity_overflow() will be true. This means we need to adjust the runtime to allow it to still run until the existing deadline expires. Use the revised wakeup rule for dl_defer entities. Fixes: 115135422562 ("sched/deadline: Fix 'stuck' dl_server") Reported-by: John Stultz Signed-off-by: Peter Zijlstra (Intel) Acked-by: Juri Lelli Tested-by: John Stultz Link: https://patch.msgid.link/20260404102244.GB22575@noisy.programming.kicks-ass.net Signed-off-by: Sasha Levin --- 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 e3a6b8ed1d6db..3f80411972067 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -1027,7 +1027,7 @@ static void update_dl_entity(struct sched_dl_entity *dl_se) if (dl_time_before(dl_se->deadline, rq_clock(rq)) || dl_entity_overflow(dl_se, rq_clock(rq))) { - if (unlikely(!dl_is_implicit(dl_se) && + if (unlikely((!dl_is_implicit(dl_se) || dl_se->dl_defer) && !dl_time_before(dl_se->deadline, rq_clock(rq)) && !is_dl_boosted(dl_se))) { update_dl_revised_wakeup(dl_se, rq); -- 2.53.0