From nobody Mon Sep 28 23:55:41 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 CE2D03264D2; Fri, 14 Aug 2026 19:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786736163; cv=none; b=rweRC5cA0hfrpzMy6wLpnlf9GbA1nBhiLWGstZOdXBpm1w1iZipxmfbIBX17IfKUkZ5IEgx9aDdFOYVVXGAS8ga4qMXXXT0VnzzNyX8mrRB8iX+sjUz0KRS115JGOS4v2d4kGUu4obSvN9CJ1YfUMjB6oCIfaVC0p3qagHON+p4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786736163; c=relaxed/simple; bh=1lIxJCIQ8hxf0K4TQ0NFGmvE4liX9dVD/44To4ArJ1A=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=kks/qCc1g8YDwydmjG8S04ygHtXmbWLSksKu4f0SDvPcOmEUeOkv4YUSOSPo2vx0j5zApEnR41GmBFCoQRgRpg1a5lFTPXFpxx4gf+IN2PtcIW2mHajZcWSFriOAjU9jgAeFU/xDiILC7leEWKdqSomx+5sVfB831P2Y2BL2k3M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=DgjR6vFI; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=UrA+UYvb; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DgjR6vFI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UrA+UYvb" Date: Fri, 14 Aug 2026 19:35:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786736160; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FaMS8Dfldtr+Ii13fwBHtPdsndYrWvzEZ/Shs5DXOAc=; b=DgjR6vFI1ZuP9/x6QsU6M254TiL1N0gIJzhJeIQKrxx/QSIS9NOqSyo2GdnMwPg62D5MJd 45UAJgzmgcnYwiH1mToH6y5uKk2nwmACYDSRqLMH+bCAwuj7FcQmYBjHLztKVW/QIL6cKS GxKQcnskM/Fr/TJfyp9GsWv2fQ+QY1xzdseuggiSzVJHX9QgVozxY7lB4s1sJosoPkMQog Mz4Q0goyekbAXOjKL+wTRg/UEDRWMHR2yDs/y75P6pBO95Ybya85Z4UyaOjoslQF2Hsoyo gPCmURywO71ecaoRv2rPZDJ8HEpIFqKcGD0RsDchzT7LQeGeSOMKJc/998Yi7Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786736160; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FaMS8Dfldtr+Ii13fwBHtPdsndYrWvzEZ/Shs5DXOAc=; b=UrA+UYvbNl/rYS+1c0fq1F9J90mYOwY5/a2ciCjc9MTSgIT8pVtJbCGkAmfnkB7on8R++U KuD14MajB++xu2BA== From: "tip-bot2 for Vincent Guittot" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched: Update time before requeueing delayed entities Cc: Vincent Guittot , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178673615898.442315.12755541915005920303.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/core branch of tip: Commit-ID: 333238da9a193ffc58792995f3e951e4cb87bfd2 Gitweb: https://git.kernel.org/tip/333238da9a193ffc58792995f3e951e4c= b87bfd2 Author: Vincent Guittot AuthorDate: Fri, 14 Aug 2026 15:52:41 +02:00 Committer: Peter Zijlstra CommitterDate: Fri, 14 Aug 2026 16:12:55 +02:00 sched: Update time before requeueing delayed entities In order to compute the right lag, it is required to update time to 'now'. Without this, the delayed entity might appear younger than it really is and receive less compensation for having waited. Signed-off-by: Vincent Guittot Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/fair.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d78467e..f15f576 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -7779,6 +7779,8 @@ requeue_delayed_entity(struct sched_entity *se) WARN_ON_ONCE(!se->sched_delayed); WARN_ON_ONCE(!se->on_rq); =20 + update_curr(cfs_rq); + if (update_entity_lag(cfs_rq, se)) { cfs_rq->nr_queued--; if (se !=3D cfs_rq->curr)