From nobody Mon May 25 00:10:14 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FD6E3B19BA; Wed, 20 May 2026 08:34:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779266043; cv=none; b=YZ6lFDSz5bXeNV77Tqy+wEpP5qyAapbIe4kRNho/i7pfityUyoVKZTkWoXIqsz1UsFTWi+KHAYq5Me/yCbASIsI7n6mUPIZ445LJl84CFv+rSQjVfRcC6kYLgg6evdFUOIqAc88JtI0PMVblHifH+4WGMaYJBEpmDmAUmoxOCZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779266043; c=relaxed/simple; bh=rZ8L64nr3HMg9SbOAuWgqV/HuB+YfHDJLyKXGHFdmU8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=CIECCqt/nkKPzHYrFRgr/hpbBwwkgbz9rdYpo3D3pHSVSSSV4PXAFLq/vsQTghuUySxrrE8DIhkGf2yTuMN9574PYe/DCSF/Miqn+F+ZESqqB1CTi/lQJ3Y3BJsuRApjN/gwRHDMGsQF9/oteZmcPIA9wUIeZXYWsr6dr7iOEFc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fHKmW+kY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=F8ESUbUg; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fHKmW+kY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="F8ESUbUg" Date: Wed, 20 May 2026 08:33:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1779266041; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n5Uw9kr54zIznqb8z9XRYA4XYAXU+mnZf3EHd9H5Wbw=; b=fHKmW+kYzRZzhpMKkdnoFaPPdz1Amnd4dtbt4n4WrvugcmEQdiCQbcU9Mn9HQJqNfC1s9C iZChp03LWLTf0QsRJfd4dQYkFG1bBVi8JnDSRqDoTuLu0MuOSrZ5LBbjPC/mDb5rkjngsr 9yfuDgt4bKeItgIxpfOcHBxrYjHQ0+0x1gVVbyOZA074ZhchVFzUR6IfiDTT2ThrLp39Dx BzQuhpDLzINh4TMMX+GEdht//fvA/1D70iwWxx5PfgTU51DReLW0NBpB5WNCHL8TqutDsr zTEC/JgT323lQV9EdrJwWURDqaGqoeovtn/Dt9zw79B0WVCaHIWlMt0LV9FG7g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1779266041; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n5Uw9kr54zIznqb8z9XRYA4XYAXU+mnZf3EHd9H5Wbw=; b=F8ESUbUglt15T7RC0OHPWvccme9lQjd3qbtQNxbWyH6nGaTPb/9xJzJW7wVvR0WgrdA0pQ 2WOwtECmK7IBnzDQ== From: "tip-bot2 for John Stultz" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched: Switch rq->next_class on proxy_resched_idle() Cc: K Prateek Nayak , John Stultz , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260514234732.3170197-1-jstultz@google.com> References: <20260514234732.3170197-1-jstultz@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177926603959.711.14836610162121234484.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/core branch of tip: Commit-ID: 04f80f8b12a02fa2e0827c8f37eb357adca8ce44 Gitweb: https://git.kernel.org/tip/04f80f8b12a02fa2e0827c8f37eb357ad= ca8ce44 Author: John Stultz AuthorDate: Thu, 14 May 2026 23:47:17=20 Committer: Peter Zijlstra CommitterDate: Tue, 19 May 2026 12:17:39 +02:00 sched: Switch rq->next_class on proxy_resched_idle() K Prateek noticed we weren't setting the rq->next_class in proxy_resched_idle(), when I was debugging an issue seen with CONFIG_SCHED_PROXY_EXEC and some of Peter's new patches, and suggested this fix. So set rq->next_class when we temporarily switch the donor to idle, so we don't accidentally call wakeup_preempt_fair() with idle as the donor. Suggested-by: K Prateek Nayak Signed-off-by: John Stultz Signed-off-by: Peter Zijlstra (Intel) Link: https://patch.msgid.link/20260514234732.3170197-1-jstultz@google.com --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 3ae5f19..77f4ebe 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6653,6 +6653,7 @@ static inline void proxy_set_task_cpu(struct task_str= uct *p, int cpu) static inline struct task_struct *proxy_resched_idle(struct rq *rq) { put_prev_set_next_task(rq, rq->donor, rq->idle); + rq->next_class =3D &idle_sched_class; rq_set_donor(rq, rq->idle); set_tsk_need_resched(rq->idle); return rq->idle;