From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 861373BED7B for ; Wed, 1 Jul 2026 21:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782942393; cv=none; b=d8zM9gh4uc/mjSyfNaOOtPn7bZGqw2qOkuNtOA+26Bfr0m2iJaFcR8l6aow8dWKXv8CuJiZeB+Qz3sX0oOYAbz5/kPYoKJEgIwzYBTWRNOITcysV2EDQzRwCaly9aFgl/b8nNg+CHvqdCr/B5KxiAMLIe99H/4Rw999iZCbbVWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782942393; c=relaxed/simple; bh=QqEMIlEDfMVS2gZmbL841iJBqrHWau/Wh5nhFtJWjd8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=E7vhO3POT/6OCsTs/O8F4Abi+wwAHRLWIUDus0fH70sbK9TMdvSQ645PqGxDy7BVtyVpzstOpHS5ZXP+66rB3QXda4cdHydLz8DtmCo4raAuGWMzjIjkWCCoWyh0kS1mZ3DIlsLf8uT1o7VuW3k2bZ1/k/HTM9y8hxI4XMVR/xA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jstultz.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=vV2hwoM/; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jstultz.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="vV2hwoM/" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-846f50381a6so832276b3a.0 for ; Wed, 01 Jul 2026 14:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782942382; x=1783547182; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=f0GHMGWazFKCsWwRlXqLafAjVanrMqas8NLu9GShRd4=; b=vV2hwoM/hiYUzbBsdez4AGBAwUGQaK93FanhiybN+qva+K8SMpf6L+vV5oOovTJ5av j3ELUkM3mplDNJsD7Sk4iO/LoGTsHhAa9lUoDWcE2AVdER8Xk1S/W+PVHesweK/9ipz7 6TTdrL2RjW/etRBaK21hJGsbGLJVKqI3iKfMlT0cxC0dfdXx22QcEN+9KUsOoB2d+7Hx BfYpkePpFMcTuHkV7XXpjeWMgwQMZXzXE457a5zku8DfLps3cGCZ70WWSYKa6JiYKvWZ U7osy2SmVYLLMx44CaSVp5+DunhTf5pCUpnot02YpXBbz9YYwQ/CSEGh4ersiLx3I16L Ip9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782942382; x=1783547182; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=f0GHMGWazFKCsWwRlXqLafAjVanrMqas8NLu9GShRd4=; b=Z6IzIHYfbsakpqWEYklpnfbfdkEgLX6XmylXh9bsCnCggkrnAsfeg3OPoHWr3PnfJw tw8h/M/1cHt98acX8bKUZz57vwyF95zUzs1gw0KkZMCD82L5bMocOLkKLdMF5RW7Tl5N SyZel2i0iqUpiNHcmiK8JVqZu+xI+vHXz6frFRk2NuMyjvg3cP9axp+vCR921cWaebhJ ZgFjxIDnNQXkIUqIvFVU2vpuYF4JnCa6AnG82R21oW+YOrMJqUzKM0+i91gS6mOlBoKk dahwkYRCUFuWDBkujP3BgR3IYssvJMgWDRlXeXpvwixsg5cSIWuTYYBZt90xCrDzPVuY 9pKw== X-Gm-Message-State: AOJu0YxzdOzns+7hsoWQN+IcssYnX3ksiERiy0OlLzceWo4RBNxO3wV0 U9nXTCHbJtJiaPzkS5e+Id2wU0cPkxsnvZe3PpNW846g3NBKtzff50eEAj7bm88XEVN6tGooy9p 86I6vEfKBq+MBCwegQzczZ+PirBKzak3xeEXhNFhOl5Ps2It76dxRzEDE/t8/0eXecAi5ueOHTk +HNZSnCW+PXpEFpaEeP7clpxgQ5kuRxcpNcxFWT6Y30gjg6n/g X-Received: from pfbhg6.prod.google.com ([2002:a05:6a00:8606:b0:845:4a4a:9c6b]) (user=jstultz job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:4146:b0:845:cf48:af with SMTP id d2e1a72fcca58-847c517b062mr2086601b3a.43.1782942381265; Wed, 01 Jul 2026 14:46:21 -0700 (PDT) Date: Wed, 1 Jul 2026 21:45:59 +0000 In-Reply-To: <20260701214615.3773339-1-jstultz@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260701214615.3773339-1-jstultz@google.com> X-Mailer: git-send-email 2.55.0.rc0.799.gd6f94ed593-goog Message-ID: <20260701214615.3773339-5-jstultz@google.com> Subject: [PATCH v30 4/7] sched: Switch rq->next_class in proxy_reset_donor() From: John Stultz To: LKML Cc: John Stultz , Joel Fernandes , Qais Yousef , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Valentin Schneider , Steven Rostedt , Ben Segall , Zimuzo Ezeozue , Will Deacon , Waiman Long , Boqun Feng , "Paul E. McKenney" , Metin Kaya , Xuewen Yan , K Prateek Nayak , Thomas Gleixner , Daniel Lezcano , Suleiman Souhlal , kuyo chang , hupu , Vasily Gorbik , kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Similar to commit 04f80f8b12a0 ("sched: Switch rq->next_class on proxy_resched_idle()"), we should also set the rq->next_class when we call proxy_reset_donor(). Fixes: f13beb010e4a ("sched: Have try_to_wake_up() handle return-migration for PROXY_WAKING case") Signed-off-by: John Stultz --- Cc: Joel Fernandes Cc: Qais Yousef Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Juri Lelli Cc: Vincent Guittot Cc: Dietmar Eggemann Cc: Valentin Schneider Cc: Steven Rostedt Cc: Ben Segall Cc: Zimuzo Ezeozue Cc: Will Deacon Cc: Waiman Long Cc: Boqun Feng Cc: "Paul E. McKenney" Cc: Metin Kaya Cc: Xuewen Yan Cc: K Prateek Nayak Cc: Thomas Gleixner Cc: Daniel Lezcano Cc: Suleiman Souhlal Cc: kuyo chang Cc: hupu Cc: Vasily Gorbik Cc: kernel-team@android.com --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 36e1db67a8374..564762ed36f2d 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3750,6 +3750,7 @@ static inline void proxy_reset_donor(struct rq *rq) WARN_ON_ONCE(rq->donor == rq->curr); put_prev_set_next_task(rq, rq->donor, rq->curr); + rq->next_class = rq->curr->sched_class; rq_set_donor(rq, rq->curr); zap_balance_callbacks(rq); resched_curr(rq); -- 2.55.0.rc0.799.gd6f94ed593-goog