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=1795787334; b=VxRFblq5WcnWIDR+U3/sryPKpI1/NitE+xgSFI+TwemIsxmGK2P/AOYIOHlVZ9rbEGr3 143qZYKjFX8tBSROUCO9Hq6By60M4roWAOZlNjI291p+gspaHGtH9km/iCIvwcWxaQDKO gm0QrHRptLACireA09+RBG9XraDPTDvAo/QXRtLjDkQ2+1CGbQlZPCwFbSodIm2Tah8Rf CpczTiC6GLNcq+/JAoaBlL4/w7l1NEcHqLyvEX+S2RGm5l/zOqt9zvx3QUU/WzhlKQMSU 7bFKoEzuI67eB2md4bweUsYZoEULZFcBgX0HekNDPWNKPwqpmQgB4UnEkYKVwGD/f1w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795787334; 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=Lk8ZuJXiqRaUs9Q5T68CHc4Ig5vBrvK1cLShrLcSGF8=; b=D4WPEs5+dkRIOG13eMDjG2luWbbI7UgiO+GNhI8Ts7B/uAhunypRWfaEsy44nR+AGYfT P8nIrh9553qm17T2/fmB/GvDcHgU5Oxn8BIeAz8ywsbB2kdSSK3q59caf/ReIxvFZL0+Q y3LgOUmLYzUvPOL+5VKWCgl5IAHO6Tp+J910Ae9j0bvXbVeFcBc+gn8pCBk1lWwLLpx1O V5Wj9FIopxKZ+xGrxY3OJd7+KOqPiMGem+4AXAwVgYhl9vN1M4rLNMwj9KgDMUkgHRr5i jJv334Fst1TzXTfK3HLNU7eJ9m4afoGxJXYeaZO7EIQyCMaCv4qWxln5uewfalH7EAA== 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=rJr8rZBw; 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 75E12606A691 for ; Fri, 27 Nov 2026 13:48:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 75E12606A691 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=rJr8rZBw DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1795787326; bh=Lk8ZuJXiqRaUs9Q5T68CHc4Ig5vBrvK1cLShrLcSGF8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rJr8rZBwrXiKM7yRlt3lUnE9+vDbQc9FxRpaUOF079VtnfKNzy+92SOhR+xN7RtMb 5oO1tQmGThcHIgxuaCVg6o9yBI5JTkbmp9wdXIR1wiYEJpP4uCCH/4DVjn3RrZDhCI dE9NJFXGHi26YtEgjheYcIiz0YCt3LUJJO6eI7RLRPVOOqutBb/Jd4Sx238q8dfge+ bcelCDnmLhZqhglWfq8MuKB83Y1iLpWSlEhtWC5934n7wi7bGR9Kjrd+0zVLkSm0aB tObUndj/1hfhNcwe1cT0jfXdnh7XT6Q5uwLqgTK7ta/HqXCHgJ642n5IuyKwXHnSqv JKufbRx60ntiw== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4jbZWf6CfyzXFR; Fri, 27 Nov 2026 08:48:46 -0500 (EST) From: Mathieu Desnoyers To: sashiko-reviews@lists.linux.dev Cc: linux-rt-devel@lists.linux.dev, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11 26/43] sched/deadline: Keep a departing constrained task until its next period Date: Fri, 27 Nov 2026 08:48:34 -0500 Message-ID: <20261127134846.114774-6-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: <06ad8ff186e425049082d0ee9b6518f85406257d.1795646914.git.mathieu.desnoyers@efficios.com> 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_se->deadline before inactive_task_timer() > computes dl_next_period(dl_se), holding the departed task's bandwidth for > an extra period? Yes, but this errs on the safe side. The refill starts the next period of the task, with runtime. If the task comes back during that period, it runs in it. So admission control must count it until then. v12 will leave it as it is. Lifting the throttle without the refill would not work. It forgives the overrun of a task that comes back after its next period starts. > Can returning HRTIMER_RESTART after task_rq_unlock() race with > cancel_inactive_timer() in switched_to_dl() and leave inactive_timer > queued after the task returns to SCHED_DEADLINE? Yes. In v12, task_non_contending() will cancel such a timer before it tests hrtimer_active(). A queued timer with dl_non_contending clear can only be one left this way. The hrtimer_active() test then sees only a handler that is running. That is the case the test is for. Thanks, Mathieu