Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10826560rwp; Fri, 21 Jul 2023 05:43:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlFuOH4No0aLJuUDIk9ngQ+4VwvBjEH+sHvl+GLavxC6kQ2FhLhsooMiEhJUvsy1CZqReKjA X-Received: by 2002:a05:6a00:398e:b0:668:83b7:fd02 with SMTP id fi14-20020a056a00398e00b0066883b7fd02mr1621727pfb.31.1689943380879; Fri, 21 Jul 2023 05:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689943380; cv=none; d=google.com; s=arc-20160816; b=xrryEMOD9zgGY5g/tpPuBRnxpVj+XFWa6dg470REU+kcxvj2XFigRwyq9W1S/B2hIx k3ignl6dyWG7RZe34ECTxpwVvVkyEfv37rVkYNBFDMVnZ4V3fy510xPP75TlVEtn0367 sgkg0jOcX3Zas4hMKzd/QXHOQrjQ20dJiY1qzUm6cC4gU056u2C0Lt9cHvTpyna2UT34 FVHJ536m0UYkkVH4zyWS2EwMr3yx8OU13a37+Ca4rEQS9v2EZs+jpifZ5ZHUr6dhXYqG 3jIeozJS3nSMqzd8Ox6zjJRU3mraRWSt1nDbynuetxOSr3JUs8Ew5rSwH4lqbZqOeoEb W61Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7ufZUhVBWubr/WTaq0aEw+CJySZhvmfhhfIecrz7+9U=; fh=9bXJKQGaXL2rAOgZSQ80PN7x00/AIyqahj9OFa0u5eE=; b=TKg6hRXMyDUtrTykZmebbgIWI+93zA8ckEkwKhWTdIi+5mgjnvqG/SQcqCJzqNjyEL ntstqfu3X/UPD/y1JJkW+cIhFpu9Aq1Hu5qDfr+x47Em9g5eBrbuPVVGIm/aXwgOr27i V2XQQR/+54xpE3HSJrWiSNLaPN9bKXpNiO8Psc/4u4k//5k59W1r4zpdHMG7cya8YlSb 9B7VH43GRs111EZSbSo6ApF7hKTLZk2czM7D+MVeAV8iISLYceVh4ksvFL0kASt0OVVH OCLpuyvSAhqdMpWNl9f47qVDpPNR+o0WOUFlTUd1dUbT0ETbOMIHsj4dmE1NB+64XeR2 O6jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="ngXt3/5I"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr9-20020a056a000f0900b0064f78c32b89si2901299pfb.95.2023.07.21.05.42.48; Fri, 21 Jul 2023 05:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="ngXt3/5I"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231425AbjGUMPm (ORCPT + 99 others); Fri, 21 Jul 2023 08:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjGUMPk (ORCPT ); Fri, 21 Jul 2023 08:15:40 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83B5F1722; Fri, 21 Jul 2023 05:15:39 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fbc1218262so16360915e9.3; Fri, 21 Jul 2023 05:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689941738; x=1690546538; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7ufZUhVBWubr/WTaq0aEw+CJySZhvmfhhfIecrz7+9U=; b=ngXt3/5IjcQ5FeSVpAB5CJWWCfq57AVWQMRgHJf1UFTkWKS6Vol5+pfmrsJ7e7JTjB 9vsGmJK1cKXNoFyFsF0LzoPxAlMi/X2sQTIz2dPcMahZhin0+7MPa1jamxoo0sfV3OWx mOhYByha7gEywSe+/PA/omaRRDBI5WwTMg9vIuS4HZ7gVyziDLQWN1euhcqqoPzPySX7 fpyZtFTHaT+LOsxtbpZsM082ZNNb9VF5E807zs9EU0dLDKDmDe1NsgFQbKq2BaX5cygH qU64788SreZNPA9uTNlyTN78jxwihTJ3ITuU7rGHg2kTyplRZ+eviry2qq8JsF+BH9wy 5ZLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689941738; x=1690546538; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7ufZUhVBWubr/WTaq0aEw+CJySZhvmfhhfIecrz7+9U=; b=YrWneiG+C6VFE7WXIwid8tQCDiWPMTF/wZREO/HZXGUd0Sd5TVMP0dsDsb34Yy6Ifd ae2Jxg6QU2Bsc9D6Wn38c5gLfXukT/oCYGVYOjRnlXEjC9EKe8ktM1qwslSVqktAFhIZ cZNbYqGWgJ+yOMtuej3TQZUOdfq0f0xhwLPtXAWV55rYUAfeykGC7hoP6D9AsVRRsqod QxbVWEl4lJzKoDiyt5F3GKaxUk6b3VR6DNogazCr08TlUxFHEipcGL0NjlaKqE9Bt5AC 5ziivtyWLoA9lwSabCoiaJuDtzaxnL4TTmFWjCLqUSbLzWe5iGW9VTFzrH1xqk4BjEnB UF6Q== X-Gm-Message-State: ABy/qLZiOqwjossIzrKXdyLYPTOPcqNaoO58uAoJNFNXCvT9+ZN/wVwj jXxDCYV6/7aPymoM3GMhOC4= X-Received: by 2002:a1c:e90d:0:b0:3fb:ff34:a846 with SMTP id q13-20020a1ce90d000000b003fbff34a846mr1463983wmc.22.1689941737470; Fri, 21 Jul 2023 05:15:37 -0700 (PDT) Received: from localhost.localdomain ([212.187.182.166]) by smtp.gmail.com with ESMTPSA id l5-20020a1ced05000000b003fc02219081sm3203827wmh.33.2023.07.21.05.15.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 21 Jul 2023 05:15:37 -0700 (PDT) From: Levi Yun To: paulmck@kernel.org, frederic@kernel.org, quic_neeraju@quicinc.com, joel@joelfernandes.org, osh@joshtriplett.org, boqun.feng@gmail.com, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, qiang.zhang1211@gmail.com Cc: Levi Yun , rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rcu: remove unnecessary check cpu_no_qs.norm on rcu_report_qs_rdp Date: Fri, 21 Jul 2023 13:15:33 +0100 Message-ID: <20230721121534.44328-1-ppbuk5246@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wherever rcu_report_qs_rdp is called, cpu_no_qs.norm value is false. Therefore, Remove unnecessary check in rcu_report_qs_rdp. Signed-off-by: Levi Yun --- kernel/rcu/tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 1449cb69a0e0..d840596e9903 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -1962,8 +1962,7 @@ rcu_report_qs_rdp(struct rcu_data *rdp) WARN_ON_ONCE(rdp->cpu != smp_processor_id()); rnp = rdp->mynode; raw_spin_lock_irqsave_rcu_node(rnp, flags); - if (rdp->cpu_no_qs.b.norm || rdp->gp_seq != rnp->gp_seq || - rdp->gpwrap) { + if (rdp->gp_seq != rnp->gp_seq || rdp->gpwrap) { /* * The grace period in which this quiescent state was -- 2.37.2