From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=158.69.130.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796141948; b=c9kf9gMzziAtxcO4Nvo9ModmErxjThJglgHDgKSAzMroHMd57Xz3/rR4k51Huwnm0VxD 7sM3uwpX++GkUWE4322++VTjtVLlYNP5kntldQQMim/znFnIWJurJqcGVx/HZQaFgSyMo jCs1taT0r9GC/Z7PsYflwqcRNX/PwAYY2siQ6aOxqxjIZPZTDd+Edh80pz1K7LnNLSiA0 g74wDz13+wtHPWoE3w6hicwF3gyC1oTbRAofZHw4Sp1xQTj2isCxJEh6Gm8HStyIbyhIF x5prcOj+I6DgUhD/0sNUQzeMX9ZD4EH7tODhKiRpIfGMDOAI3eDgu2wR+kCxyHd92pQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796141948; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=OnQ/r4C9SviCAZSusbppRLyLRqJyu2mUC0SHkX3hBLs=; b=xXB9O9ldcK940GIRfNK7DT6T9GjuqmysIdZXm4PHKHZjsP+B9yrX0dpdWXUVoPZ1i9Hu XyK8Fw3XUbI4jfVbPY8xcna17dzsxHB+YAMUg8nt/dI1s7/C87T8ouuA3xqF28CYtenei a8zChWtgG+rkWIvMhniWbzOF2ijoEOvRUEhwgOWoYSedQpybPdWk80B6N5l+8X0PbMdi5 DL+sEvVOSfE0yZ18V+OcY0RRS+gzfK9QcCAtVOD8PaS30QxCPGpGQUjnLR2suq/EZ8y05 x34URZ4Fg8nFUU4GwmLNA61fZijYkFNiWtj650K8xyIiesntLwwwchQuD2xliAnaYmA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass header.d=efficios.com header.i=@efficios.com header.a=rsa-sha256 header.s=smtpout1 header.b=T6VN3XvP; arc=none smtp.remote-ip=158.69.130.18 Received: from smtpout.efficios.com (smtpout.efficios.com [158.69.130.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 521BE60A260F for ; Tue, 1 Dec 2026 16:19:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 521BE60A260F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.a=rsa-sha256 header.s=smtpout1 header.b=T6VN3XvP DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1796141941; bh=OnQ/r4C9SviCAZSusbppRLyLRqJyu2mUC0SHkX3hBLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T6VN3XvP1iqc5FgnoOnR5ud6hbXpQyRwTWL8MNxDHbRqZzxe5mYQ6ZGzURJBxZ2wh Yie2Lp9Me015aFQRMUXNYMe5W5OXrqcdyxc8wzP1DX3BM/6LS27Pn3628hiyECZAiE qDNqmyeYjjZACFFEi/uf5BNJ+cxkc1evcQFn58FOgdDX1Depnm2KwYfsqXuoIyAM2D o2tsDOPoPrPgA27Yvn9NJUL9ZN7kUTOYFEzVNK0UsosX107ssNSbvrSgEjAEqvDQ4Z +T7eScS52Zi2Xb+YOt0MP6z2TXn16XROtdnxuVNKqHRIrvjr/EoY3XHdKzyC5RVw4X 1VOszC96HzHUg== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4jf5g92Zd7zZ62; Tue, 01 Dec 2026 11:19:01 -0500 (EST) From: Mathieu Desnoyers To: sashiko-reviews@lists.linux.dev Cc: Mathieu Desnoyers , linux-rt-devel@lists.linux.dev, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v12 34/43] sched/deadline: Cancel the replenishment timer with the parameters Date: Tue, 1 Dec 2026 11:18:55 -0500 Message-ID: <20261201161900.284450-10-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > Can dl_task_timer() advance dl_next_period(dl_se) before cancel_replenish_timer() > is reached, extending a departed constrained task's bandwidth reservation by > an extra period? Yes. This errs on the safe side. The refill starts the next period of the task, with runtime. A task that comes back during that period runs in it. So its bandwidth stays counted until the end of that period. v13 leaves it as it is. > Also, the commit message says that a constrained-deadline task that overran > by little reaches its 0-lag time before the end of its period and has its > timer cancelled at the 0-lag time, which does not match counting the 0-lag > time from dl_next_period(dl_se) and keeping departing constrained tasks > until dl_next_period(dl_se). You are right. The second bullet holds on v7.4-rc2. In this series, "sched/deadline: Count the 0-lag time from the next period" puts the 0-lag time of an overrun after the next period. The first bullet, a task that yielded, holds either way. In v13, the message will say that the second case holds on v7.4-rc2. Thanks, Mathieu