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=pUg5Xi/PVbQVr4XgS/gqbsj+jvtjcvIq+6bGEi2REBn3HIeBIBVJLaIwFa/awZX9QlUc +HTQB+ddVO5ucdwAlYQRjUiv4Px0WLJb8VfYKWbLPgGio3fPSNTwTaO7M8VhWL5Tl1J3M jALmvZIS6/ddZJVwPolGZOs79Ffz4i4NMgzRSCVa01maqdjBrTXnkKQDSQ71Y65ILGdLx q7WrqRv/cqHOuPqbKZHsFxRFfqfuyfl/cRWpRpDcHqkEUSghcQ4ax3nWFcJVurvz2xBOa 8c7tW2Yo4gI+Hzw7BJmlc8qia1pilUhRS7QMUd5ZahdoYHNZSE8XcSGj+cByVT4lzKw== 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=qzIOS4pabhM2WpxHXsERXfIb8DwXiiYzW+Mp1StwL9I=; b=02sAFEbiiqght4kYZBtBixSKrDIXkhWzH6Zw/0nvcxW3cgGxwMuc2Wu1Sm+Zyi1ApNSL 3cKbzrf9k9DqQRwqqgIg5tx9lQEGxTwEf0y4l4dSzvDS0VrrENJeKJ2IrP/mSmrjZyO80 IPx1M06zboqcXEiwicXNQt/OYIRYC1zWKdpG9c9H46jeppGo+/kwDNXUH5IQA7Azjryy0 wH1+Wz92FpT1UlR9Eeo08fAR8VMUTzYgevT6K8UijL+WvtE8MTx0zWeE7t5gzVNNNCvX7 mWwJIECNaDrP0QoNgXc5gLbc7kV7JEBYwSIj3sBRGOhDjUdW4M1rQQi6WDX5h1VBaDQ== 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=YxpMIhgf; 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 75E4B606A693 for ; Fri, 27 Nov 2026 13:48:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 75E4B606A693 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=YxpMIhgf DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1795787327; bh=qzIOS4pabhM2WpxHXsERXfIb8DwXiiYzW+Mp1StwL9I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YxpMIhgf66tUp7B/033wbHsUdWWe1ixTwqe1NvAhwM32m9+EmXSFwV3SwmBZL+unI ZgcjRVoq37p3hP1mP4xWCINB+sbWGOANv0wvecBp20JlV19oieYIS0SSJJcsDFBu9p o7AxXEzezv9HWszB4fldfYN6Spfai8lUcBPYH9uv/rbsTSM2xZdEPEwNk0bnHpyDGg Mlnd0u7UGvR3wwgZtTn38jSVjCf8hxDQ8ueDDrKqtWiKZk/lsRRzknODWhsU5PSQB8 UknkOpBvJp7BO5KhrprwysH8iKp6fYblPQjJgGyNzg182nbxfsn9hE/eYtBUcptOs9 OAaoBIQoEjsJw== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4jbZWg2MxWzXSC; Fri, 27 Nov 2026 08:48:47 -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 32/43] sched/deadline: Start a period for a task requeued onto an rt_mutex Date: Fri, 27 Nov 2026 08:48:38 -0500 Message-ID: <20261127134846.114774-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 releasing task->pi_lock here before task->pi_blocked_on is set race > with sched_setattr() or PI boosting on another CPU? Yes. v12 will also call dl_proxy_block() in task_blocks_on_rt_mutex(), under the pi_lock of the task, for a task that is not current. > Does the uncontended FUTEX_CMP_REQUEUE_PI fast path in > futex_proxy_trylock_atomic() also need to call dl_proxy_block() on the > new owner? No. From patch 38 on, dl_waiter_boosts() decides the boost. Until the new owner wakes up, it compares the waiter with now + dl_deadline if the owner's deadline is 0 or has passed. That is the deadline the owner's wakeup gives it. What remains is an owner whose deadline is ahead, but whose runtime would overflow it at the wakeup. It can miss a boost, as on v7.4-rc2. > When a boosted sleeping task has dl_se->deadline == 0 and > dl_se->dl_runtime > 0, does replenish_dl_new_period() here record > own_deadline = 0 via dl_note_donor_refill()? Yes, as on patch 28. dl_end_held_boost() puts that deadline of 0 back only in the first dl_period after boot. Later, it starts a period of the task's own instead. In v12, dl_note_donor_refill() will hold no boost for a deadline of 0: see my reply on patch 28. > Should the boosted branch in dl_proxy_block() also check > dl_entity_overflow(dl_se, rq_clock(rq)) as update_dl_entity() does? Yes. v12 will add the overflow check to the boosted branch. Thanks, Mathieu