From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796050142; b=BpwZNe0L5dKxClX2uxABE7TrSNJ6eiGRR3GTqoVp37sNOmiWXssp1jviKEmVHErVStKw VTC4G5mFy8kXZAaYy/YTO3yKutqZNIKKGH6/358Mtnf9MB0llfnAN7IabErsowRUWszDH 0yftdVWnnNbFwpxzgWFsIgEi0GwQlQpH/UQNLzI/5UW0dARgHnrQX1UT/mJV1kcl+Tlbi XCnLBOcCRNkOjDgWfLZTz4GOQNZm7k9dkcgbgBNoIHh5dxMtff3y6zOOn5XKwvkxT2qje ucUh9RLdw0duRP2qBv8x+ShvM6j/oJ1TmSbANuHmrA4n5PrTY0+JiLUS0+iA7FXKr9A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796050142; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=5EbtkQ+5O2Izko2Pja3+QAoPQCOmiEmkdY14nHLtzmU=; b=svn82Lo9bpjvIN+AStFpOT7wsM6LbsRpfnSv1Gc29fKMJQuApNUFIa7iUgXyvR2t7V4j tMbLS9Cg6Ds0Qby1LNPK3p2ctkHCttzsLA8a16mCf2dsMI6yDgw/xmTwEuN6Z+riGmO0/ yeczCC6lfkLNKvG3xNsZ4A8TNSVg++5y5HiPkjyioMWiNgZexke4oxNGBU61UH/Ke21+k ygAMCXgR0x/GR4xcbPPjV4PSD3VeCA3DpoTwLOS9+XiMDDdQL96/+tqjuar6WgrDD10uE xD5m7D7TtEP6R2fNBHgYAs0iBbYjMK3ZqLPYfHw8kHhKahwFyNq7022h06hEv8+TrTA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Rc7VDQbX; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=bnk6G+qF; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0359606A320 for ; Mon, 30 Nov 2026 14:49:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C0359606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Rc7VDQbX; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=bnk6G+qF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796050140; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5EbtkQ+5O2Izko2Pja3+QAoPQCOmiEmkdY14nHLtzmU=; b=Rc7VDQbX8/LTV+MarZ0FY7bwrB60vKMtnPsrfiUVjs7rN/Byz3bKDsaa/M0FXPu+yxVHsl Fl6W3m6M9dK6i7dKoPYcmKp0XD6w64Hr6yTph1UOXBUgr0+qdw7rU4PWfoknWHwrkJhCnt zL3PpA2Gwt0JylbYlORFo7ggCV8BzXE= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-677-_vRm0meENUuAO6jUOsHp_g-1; Mon, 30 Nov 2026 14:48:58 +0000 X-MC-Unique: _vRm0meENUuAO6jUOsHp_g-1 X-Mimecast-MFC-AGG-ID: _vRm0meENUuAO6jUOsHp_g_1796050138 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-6b6fb975053so4266808a12.0 for ; Mon, 30 Nov 2026 06:48:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796050137; x=1796654937; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=5EbtkQ+5O2Izko2Pja3+QAoPQCOmiEmkdY14nHLtzmU=; b=bnk6G+qFxuVr7DUysIWciHrYjn7ofzQE7dvwKl+zZcfNqOZqm/Y49MoRufThJB0qIX 8k0oEuiSn/IWC33uhVGAOrJWkjHIXopEmJP9TVBsgCZESHgJPLqKakmpAbkRI5GnJgXb eJptrDuO74QL+tLHSV3/QzDATVRweNRxn8TE6Y/tI/ho+3I3sLJxR9DVZWv6NDufqL9m SOA8UnvjqTOX8EbCTQW774rtbfcuJFzN11KsmGUmZc4ZQ3IDlYoTxdLrs510C9tdKtD9 rge1nOssRal96YGx7b40vbM1ySeW9r5yGEpItJTJjhM+u77t0k9mUdjsC218yKoYJGlH /UFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796050137; x=1796654937; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=5EbtkQ+5O2Izko2Pja3+QAoPQCOmiEmkdY14nHLtzmU=; b=r2ZyOx1nzlPpm+tCEv2WW7G5335IeH09khZachEb02fqUZJfy+a4lMqn5wnTyAsbGG OzPBsHZKi674IEzMudBMAgYSeW1SU4FQP/fkyTo5HkyUNyDxaEG24NPuOsR8xopFWtxN mejRwtjgegcNzx5LQWX+HmaZBZu/Ev/sBFTn7WJJ4+MnjeliFj2fwW0YHkw+OHee8h2X x4YUPIqeIJTk0ie+TdEMMh/ExBdDhwZkpvtj4GPaRPcPqGlg4E37rmm9BUmBbxWp9fXE OyhpIIGBOfDyo7oyDPGcZ/29FHIHnQ5suvLBsv8d7+AraTCRzVr1tU1+i+g7HTN/IVN7 fu0Q== X-Forwarded-Encrypted: i=1; AL+hErFIIbRRSmOC59b1OaXSlARpfZXl/XYa7211SYvwRei9s4exLDDDxeHgmK5g2ikrmSXNbpgSLlIkeogJ1yQ=@vger.kernel.org X-Gm-Message-State: APuU4Z9XEwAkYxH2KK3uSfDISC12/pwFxTr7/Y0f+vuBBhPGqBIIrwMt h/3Fi8HqXxNZlcJoEhNUv3ptgFKzi7GykeQkTPrif5YYn6OTQ13VZgom5TR77aGN5x+LuAuz83V hRrC9g5JjpXOWEVvMyRvc5C0exbFQBbMxjTb6SWUErd5AC8rgA92VLiDSIprO3APqeVklL6ffYY Cp X-Gm-Gg: AZFdTZc0VzvR3A0YI4U5KlcVoTYjK6CpJWBKLlbj4XTVkSU4MtFN9/4tmV8ACYNyYn0 iiM87sT7dBigAobrt1lk8ZBgM3IAPz2cevIItrLZTlBXPq9MrGEtlC+iQjexm9/XnEX7gyCZRES W9N3MD/yckao150jqcJNQ2MSgPzRBDM8BKruY9Ata+SkUVfefsF+mibvbXWWFwnOdaenI0xMTe8 IeN5FFc/iR1twRNJ0+YdILIHJi9gKs/pzO78UDpjY7rvEG6060b7xNhnb/8bWK0sxrjhgGvcm1t LSa5l3CtVwIjWF5nsEaD4H9mSxsUjpGHvgDMTrplgVea8X4QBI2gr6pfafsCY7oK5kvjyBD8kzh 0pJZQnz64vUTdiE3pIZuiNeTNQHEXAHMag4mLOSWepNwodaCPGHP76SuZbLGGh5iLyYGX/ZUSvZ CnPb55 X-Received: by 2002:a05:6402:5d95:b0:6b8:5823:1ccf with SMTP id 4fb4d7f45d1cf-6ba37e8e2d3mr17763160a12.28.1796050137659; Mon, 30 Nov 2026 06:48:57 -0800 (PST) X-Received: by 2002:a05:600c:5303:b0:4a2:1a:a11d with SMTP id 5b1f17b1804b1-4bb88785d24mr661892355e9.0.1796050126950; Mon, 30 Nov 2026 06:48:46 -0800 (PST) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.146.153]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884ab091sm1280351045e9.11.2026.11.30.06.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 06:48:46 -0800 (PST) Date: Mon, 30 Nov 2026 15:48:43 +0100 From: Juri Lelli To: Mathieu Desnoyers Cc: peterz@infradead.org, mingo@redhat.com, vincent.guittot@linaro.org, tglx@kernel.org, will@kernel.org, boqun@kernel.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, kprateek.nayak@amd.com, luca.abeni@santannapisa.it, tommaso.cucinotta@gmail.com, mathieu.poirier@linaro.org, longman@redhat.com, ridong.chen@linux.dev, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, shuah@kernel.org, bigeasy@linutronix.de, clrkwllms@kernel.org, parri.andrea@gmail.com, m.szyprowski@samsung.com, kayracizmeci@gmail.com, weihengqiuu@gmail.com, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rt-devel@lists.linux.dev, stable@vger.kernel.org Subject: Re: [PATCH v12 27/43] sched/deadline: Replenish a throttled task boosted while asleep Message-ID: References: <20a888f86e1cf2d286e5848b10e419c0a5e2a3af.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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20a888f86e1cf2d286e5848b10e419c0a5e2a3af.1795771148.git.mathieu.desnoyers@efficios.com> Hello, On 27/11/26 09:35, Mathieu Desnoyers wrote: ... > The refill reads the parameters of the donor, from the timer. So this > relies on two earlier patches. "sched/deadline: Do not replenish a boost > from cleared parameters" keeps the refill from looping on cleared > parameters. "rtmutex: Continue the chain walk when a waiter's deadline > donor changes" keeps the donor pointer from going stale. I think the second one should rather be "sched/deadline: Hold a reference on the deadline donor of a boosted task" (23/43)? What the refill from the timer needs is a donor pointer that points to valid memory. The chain walk patch keeps the donor up to date in more cases, but cannot guarantee that (its changelog leaves a stale donor as a known limit and points to 23 for it). With the reference, a stale donor is still readable, and if it left the class its cleared parameters are handled by the first one. A stale but still valid donor only makes the refill less accurate, as for a boosted task that is queued today. The other way around, without 23 this patch adds a reader of a donor that can be gone, from the timer. So maybe 23 and this one can go together, ahead of the rest of the series? If it makes sense, could you please fix the changelog accordingly? With that, Reviewed-by: Juri Lelli Thanks, Juri