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=VJS6kemcx68SKVvKeJ3yGCi8/iOkYWoq0KNQy2c6GttvDvEU5FKb1+NmanNvTS0z/O2q moxD1FckGrIcarrXLpv7yjmZnLRQ0gs2XE+Q9zwKSATXF/xfPK8z0T+XX2qT06FTiE7Oq 3SAV7Spxm1TeFIKLXbkw+/+NNpIiLhbaPs4tE4FEQUQUDhVnuAUwMwRua3jP5ZDoFNkd7 GbE6qhEx41X+JAdqS24+vcPL+ewkCzV1rypha0bWbZeDEwx15QOpgJYzXYlyyelFVIsuF k/Q33+rZSUSGMx76lOXE4tDZw8ogfD+SUj6cW6fk9h990e3S2Axzm3vJVxFqM1KD00A== 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=helBVEKB7s4sLf0qvaL1VDuvOEBTEVhWWu2qLWKucos=; b=jLq5YoJ7YtQH6q0KzpYgzPRwmXcY9fcg9cqk8wgLm4VLrGADQm3P+FgUGRjirf1vtGNx uLTRzJ2KSvxu1fDm5xEY3PcCtsB4Np93ZIUSCm0nI51uQ+zbsDoLB4p28WUQHxgjSkFh/ nFEPpPcfLGidyxGI/emZW9h0F2oMffPwkKKX46bXjwWP2NMmkYyK5UATu/P4opISspYF+ 47YZRa5t3C56ycQhO3NA4h/uPWegHeCcdn7NDMEZAxjyDsFncrIRvmXPVzetENiPTt+TU aIuHVeoDtttySF5AY17jVPxVTqftOaMfbuCuGTLnXaXypPOYi4GqwmyqgR+ZgiigvBw== 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="KUr/zTxK"; 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 4D82360A2608 for ; Tue, 1 Dec 2026 16:19:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D82360A2608 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=KUr/zTxK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1796141941; bh=helBVEKB7s4sLf0qvaL1VDuvOEBTEVhWWu2qLWKucos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KUr/zTxKRjDhpOjfgxaJVXvimX7Shqj/esjRVoUQcf+0tZOmpUjaKJ89tW9byMkWP xf2dQMibZQtJ3NU5alztQRqi0TRxgl7a3fUcN+Yr6BU7VHOmx08FLT3l14b9lXh1AY dE2OcZoBnPljAsCoBfVdqnwdm/CJdUpzKwrzPwUs6VKbVnTk8iMDBY7OMTBWF6bRTf p0wMhA1skMVmv8eqYrjdYBfIibQTt+1jUjXY3DSohWro9PJTAMLddXMNZm63g8Y/LP aQOjfMlpddd0oQpWeM8sSIeybK678fb84cpMW65FiMU+hnniuft2p5fQAzNZfnXXKb +Ler/3IEUuSuA== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4jf5g91q9NzYjv; 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 32/43] sched/deadline: Start a period for a task requeued onto an rt_mutex Date: Tue, 1 Dec 2026 11:18:54 -0500 Message-ID: <20261201161900.284450-9-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: <108966f2fba71871167eb2108c0bb126aa2e8668.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 a sleeping task switched to SCHED_DEADLINE after raw_spin_unlock(&task->pi_lock) > still reach try_to_take_rt_mutex() with task->dl.deadline == 0? Yes, in a window of a few instructions. The task can then take a lock that has no owner, ahead of the top waiter of the lock. This patch leaves only that window. On v7.4-rc2, nothing updates the deadline of a requeued task before this trylock. The PI series, which will follow v13, will not close the window. Its cover will list it as a known limit. Thanks, Mathieu