Message ID | 170126973067.398.7349628607545503736.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a5a7:0:b0:403:3b70:6f57 with SMTP id d7csp392055vqn; Wed, 29 Nov 2023 06:55:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHr8S4GYDPw4kYQnR0zfAn92QfbkqyizdgU9Pa0527Xjr8vCM/tHEQOFz9xHkuzmofK0EPi X-Received: by 2002:a17:90b:1b4b:b0:285:b148:52d4 with SMTP id nv11-20020a17090b1b4b00b00285b14852d4mr12409925pjb.18.1701269743803; Wed, 29 Nov 2023 06:55:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701269743; cv=none; d=google.com; s=arc-20160816; b=rCKstThD4FWuJWIeh2PJusoKvGfKZ6RBLmSkMQcs9a76u/yoDVHWvYk/wMAf2M/Owe ETaELJC/9fLSzlKtHpllXid+sioRkbC67JAhxLRoRahpg7O73D9ps9tujeQEkwdRlA+b sATHuZXBzoWWO0cFfY6ocLRJHC0lWnga6Fo00Q0fAJMOK/JLKRJ+TY+0JfjY89ZWqZc+ 3cseis4FFvEsw/DIUWH8iQ/9AZo8tBvDSFXDsTi583ZzwZBKyvpKmqN6XEMDC0BZx6/1 si1dctUBy9yyEoNFnHxv7yB9j6qJyGcv2AzY/a2hC4nFDhAX0/oCu/Bebw/Zdde6rNvK hOVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=r8ySP+SvI+7RTRaiKPPFubKiOWuKxmizoW+aXcEPjUg=; fh=i1RbiwoCW6XuJMvaI0vr6GwTK93yrKoj/wKWAp+sQqo=; b=WmfZcd+WknSeFezZv5BUS9j+qCJb5L3FSVmr0a4t1z5FRbAjCWebP/eMPpa7uVDsWm YwHYijHqlHZ/DXROcRloiZAd3TXpmqcq0TcQ4NzXssSnlx5qLv65enXdphft5uWjKJro 4u6DI3HOCiAKDEH9KAOnogzKD/y0yw8CgTKJEiNjNERpXI6gw89mCAKI7nCvICKqkesO +7JCLP1Vmxl2gYHWssjLmRH8kaMHRDx7GjEPAlATU7/IVj4YBChb5p49N3P0S5mXx30J mZnG1CmVMyd0bt4M/rrdJO+rLTAV4C/2uvMGbWlFckxxo1/ZuAuC4d0nQp0WNzZ2/ry3 U34w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xcMz8xib; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=8UJX82e6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id d3-20020a17090ad98300b002850f2ced2csi1421023pjv.113.2023.11.29.06.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:55:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xcMz8xib; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=8UJX82e6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7BD1F80511BA; Wed, 29 Nov 2023 06:55:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234684AbjK2Oz3 (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Wed, 29 Nov 2023 09:55:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231256AbjK2Oz0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 29 Nov 2023 09:55:26 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71FFBBE; Wed, 29 Nov 2023 06:55:33 -0800 (PST) Date: Wed, 29 Nov 2023 14:55:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701269731; 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=r8ySP+SvI+7RTRaiKPPFubKiOWuKxmizoW+aXcEPjUg=; b=xcMz8xib+FFkoZcqruU8llUfCVmaY4oPY81F8knQH4IU2DdjJEmtTWSvYVtTtIIuqoc0O5 PSkjLKWQahkTaNky8LjD/JIX/1A005uSsAiF59Lon3eaVU/uO2BJqalMidUvu3yLOWIPor sACJo6Ys5H90Ee6E7W1VKDvKcGfNan5Jr/B1qxDEyGu2TgJpkhk4KqzXpWaVvjA7j05lHk Ri3VFcAut4TJutGSl/beVnhNUlu2MwlutSt6CbNIo2f4sOra21wXu1fZLBalvOnIQ8+2wb e4MSKPQrhMZqJF4OgDOROUaFNxctMc8uLBjIImI/mpaeyU6NaN4uqxMeJQQV8g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701269731; 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=r8ySP+SvI+7RTRaiKPPFubKiOWuKxmizoW+aXcEPjUg=; b=8UJX82e6i7Rvumh0npkmXqJD11e4CFIhnvsdSJMRHtPbVa4P40tzeUEU+K7NQcTH19YJVQ 9alWh57eU7R+8bDA== From: "tip-bot2 for Elliot Berman" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] freezer,sched: Clean saved_state when restoring it during thaw Cc: Elliot Berman <quic_eberman@quicinc.com>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231120-freezer-state-multiple-thaws-v1-2-f2e1dd7ce5a2@quicinc.com> References: <20231120-freezer-state-multiple-thaws-v1-2-f2e1dd7ce5a2@quicinc.com> MIME-Version: 1.0 Message-ID: <170126973067.398.7349628607545503736.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 06:55:38 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783910622848334920 X-GMAIL-MSGID: 1783910622848334920 |
Series |
[tip:,sched/core] freezer,sched: Clean saved_state when restoring it during thaw
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Nov. 29, 2023, 2:55 p.m. UTC
The following commit has been merged into the sched/core branch of tip: Commit-ID: 418146e39891ef1fb2284dee4cabbfe616cd21cf Gitweb: https://git.kernel.org/tip/418146e39891ef1fb2284dee4cabbfe616cd21cf Author: Elliot Berman <quic_eberman@quicinc.com> AuthorDate: Mon, 20 Nov 2023 09:36:32 -08:00 Committer: Peter Zijlstra <peterz@infradead.org> CommitterDate: Wed, 29 Nov 2023 15:43:53 +01:00 freezer,sched: Clean saved_state when restoring it during thaw Clean saved_state after using it during thaw. Cleaning the saved_state allows us to avoid some unnecessary branches in ttwu_state_match. Signed-off-by: Elliot Berman <quic_eberman@quicinc.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20231120-freezer-state-multiple-thaws-v1-2-f2e1dd7ce5a2@quicinc.com --- kernel/freezer.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/kernel/freezer.c b/kernel/freezer.c index c450fa8..43b1d1b 100644 --- a/kernel/freezer.c +++ b/kernel/freezer.c @@ -187,6 +187,7 @@ static int __restore_freezer_state(struct task_struct *p, void *arg) if (state != TASK_RUNNING) { WRITE_ONCE(p->__state, state); + p->saved_state = TASK_RUNNING; return 1; }