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=DEOlRCSm+LXgZCcOCRuw/rAvjMYvLtF0nvpU/lSAPETLMv5uIhiUyrXhadz/ezt0LA/B +ZX5lX2F2yZwOq/ddNT6NBgDQ3m019btvj2E1Hr2+Oo0ITKqPRW3KWu0AoePpopp5s0Yy HbTWVCL1H55iHz4I7zLyudMJ0G7Ym0mGxYJJ+Lfk0o7q80EBTYVU5ri8q9CadaLBFzNz2 7UVaKDdReI5nghm/XcGalf9SV62qy7N3nVmWoDreKqKhykO+WJP+bRQHZQajJLpO3yihW ABPWS7EnA6CIG89H0tfHRLZaFGVyycpNvKx5phY9p2eXCifff9Msjv9A3bpNMc65SmA== 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=NTASlO72CbghqCjQxz+zGHEVyHq9lCkBFiYTXOg3xYI=; b=WCHfNwwXHErkK0GpEL8JpMS3b3qMDwRF9hzGV/Oh0287zBfWEubqHhjApnEkZpaUaK95 5pCeta075eXU9JgjVE/+jPzg5dRFhBFbDoMM7wnoHmPSxVA5jD0Gb6VpuQSRvDUHwragH O6bvXHTTKbwgjI7TP1VaeBcbxijWkpxIzeR0LUHp6qumSJ/RHRkRvYvEAE6Lk0Czn7LvO jqZoubocaOX+33Srq/g6H7VYjeVLCOCTE3Tm618Inh/lSj3/O8PTKGzWM7T0v/WhZiYB8 J1X6hZIN1JLaeOTrBN96y5DP+68I0G0IJWDzr2VvX1hzOXpciVlQZ/mF7tLvjo290eg== 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=UwzByIoL; 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 50D4D60A260D for ; Tue, 1 Dec 2026 16:19:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 50D4D60A260D 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=UwzByIoL DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1796141941; bh=NTASlO72CbghqCjQxz+zGHEVyHq9lCkBFiYTXOg3xYI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UwzByIoLb1MjeUtjOvIqPnlwrxScB8Ay7bOYWk3hb6sX/5zmJw8laFO7czVplMBYb NWUiVoDAQfJ8GggbWirFo+Uz9lbemhmfi2AAefytEnj7vAa0Zs9g6obr0vxV7NZ2tv G/6EQmjeqKGzHk1hG54+QO0Wk2UJQ2yQiDylLPO6IcLPbmxAnl9vzZ9q8bokR6gUGV vHVag4s25wznLAXrQKhPVmE/u1v06dStmiE4DaR3s/Sib54Dxofit9Zgyp5tSaKFqj 5lpbC4yUUs3U2sPrXOY8tA7Rqq2MjSn0XBjMe0K+/rOAGaNK5xExZn8bBncfh6p+Fg 6ei/wIApKEGwg== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4jf5g948ryzZ63; 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 39/43] sched/deadline: Boost an owner throttled after its waiter blocked Date: Tue, 1 Dec 2026 11:18:57 -0500 Message-ID: <20261201161900.284450-12-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: <128cc48c0630c9f7197e29fab8cbc086ed34bd83.1795771148.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 rt_mutex_ask_dl_boost() observe a stale pi_tree.prio when a blocked > waiter was promoted to SCHED_DEADLINE before becoming the lock's top > waiter? Yes. The stale pi_tree keys are a bug of v7.4-rc2. My rtmutex series fixes it, in "locking/rtmutex: Clone the sort keys in rt_mutex_enqueue_pi()". With that patch, rt_mutex_enqueue_pi() copies the keys of a waiter as it puts it in pi_waiters. try_to_take_rt_mutex() and remove_waiter() both call it. rt_mutex_ask_dl_boost() then reads keys that are up to date. > Should dl_boost_start() also hold the boost when dl_se->runtime <= 0? Yes. In the PI series, which will follow v13, dl_waiter_boosts() and dl_boost_start() will both use the new dl_cannot_run_own(). It is true for a task that is throttled, in its constrained gap, or out of runtime with its deadline still ahead. So dl_boost_start() will also hold the boost of an owner out of runtime before its deadline, and run it on a period of the donor. Thanks, Mathieu