Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp758351rwb; Thu, 15 Dec 2022 01:57:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vjXajzdY2VTimrbGLUOVZEJ0mxx6XZWOKfXqruIr5yevs5v0bnJN2OKepaFQPUD0e3aVx X-Received: by 2002:a17:903:1209:b0:185:441e:90b4 with SMTP id l9-20020a170903120900b00185441e90b4mr39603332plh.26.1671098223437; Thu, 15 Dec 2022 01:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671098223; cv=none; d=google.com; s=arc-20160816; b=QVdlEQ2BpFuUjTpKKy5rhhqL9zQXgSDyjLGY9FW1UpfTfZwVRNVo1Svm1GM9fb2pdL hQKzkm+HbQxtPCXWK0eTiqIXeIJuYLFhhEoCQbbOuzLO+mwza+Ir8mtby1EuulfKUszV OL7TpEg0ZzLuPh1hiJFSegrUDYXN/OFDCIDvFyl5jI5fAzmmlNLRtk54L813Sh6rY4WL kDovMEEothLxtHieJyWsiV6/KDapdlruIGCrbK15TNJnfjIfAFLdXK6uIJk2zZ0gU8dp M8fVa4K8vJX2eYl3F73g55IInEioiMgZ8deCR5TW9hBBtLoP241EqUJVpvcAv/2QiCNH L4cg== 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=avv0SgSxMSv1CpDUK49S3oM0FFLjqC7/d9ux4ykiwZ4=; b=hfDeI0jUSir8i4O5bsNvYntnkYzdXKd8xUafYmbmN0WJ6mnXXTt214Wa44Bm3louhU UQTBjMloynemkqHHyTg0syXHqOsNjmo6sHoGAntWmTACVwHwnwpQw6n4g/kBi367mHwI kgW9B9u7wEQPszXnSxZYR6gH3Q8eiJzdFZ7PENc0A4q2nkuNIPuo0R3QPSb2bBAPKL0H AYrbd3OeC7gWyV5j0hOcYLHBGEgHixV5YVQ6LbW57w5Rw4zRmmWBjf4UcGXNf0M0W0VV F1f3eYEri/fjoMdKCYevPzxOJDcfyOdDHLkFxVqDZ8/bKtrKBB5JFhhRbWJffBjJymfE vbNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BreZfMrc; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a170902f54e00b001890c6feffasi5817344plf.568.2022.12.15.01.56.54; Thu, 15 Dec 2022 01:57:03 -0800 (PST) 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=@intel.com header.s=Intel header.b=BreZfMrc; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbiLOIzR (ORCPT + 68 others); Thu, 15 Dec 2022 03:55:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbiLOIyz (ORCPT ); Thu, 15 Dec 2022 03:54:55 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1E112C658; Thu, 15 Dec 2022 00:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671094494; x=1702630494; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Uev9S5ocS7bK1HqwVkJ4NTAo0vUxSsTQB2xMcXsLcAw=; b=BreZfMrcKeDrDHjqakC9qCEOaVT0kB8LX7nZGM4l9SneICIpU5VOqNoo BZjOa/ODz0lVlSOPsprms1m5NbqRIFDDD7b4SYAQJhokjcb8F8lKbBxeF V72gvUaU4xelSlSIu49c6wIe9ztV4yw/6Kdb+QhinuM7CXnCDle2A6iU2 nA4VAnXTTAy9r+iivJctEx3NDDngO09Nuq86tQ1SUWO0vm0I/K3MKzwfj QSPslb11JnOUtNCAeKFgGGADKL9AP8YUp/BVxXMJtBjQg8+8SEUwY4Wql pT04XGQcsI5R7QErCb5a1wdnHp9g/DeKQ5i3UTjeE2loMOquyzUgqnMHW Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="316263154" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="316263154" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2022 00:54:54 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="642838888" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="642838888" Received: from zq-optiplex-7090.bj.intel.com ([10.238.156.129]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2022 00:54:52 -0800 From: Zqiang To: paulmck@kernel.org, frederic@kernel.org, quic_neeraju@quicinc.com, joel@joelfernandes.org Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rcu: Remove duplicate settings for rcu boost kthreads affinity Date: Thu, 15 Dec 2022 17:00:29 +0800 Message-Id: <20221215090029.2972236-1-qiang1.zhang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 Currently, when CPUs going offline, the rcu boost kthreads CPU affinity has been reset in rcutree_offline_cpu(), therefore this commit remove duplicate settings in rcutree_dead_cpu(). Signed-off-by: Zqiang --- kernel/rcu/tree.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 65f3dd2fd3ae..20de83ed0c7e 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -4122,15 +4122,10 @@ static void rcu_cleanup_dead_rnp(struct rcu_node *rnp_leaf) */ int rcutree_dead_cpu(unsigned int cpu) { - struct rcu_data *rdp = per_cpu_ptr(&rcu_data, cpu); - struct rcu_node *rnp = rdp->mynode; /* Outgoing CPU's rdp & rnp. */ - if (!IS_ENABLED(CONFIG_HOTPLUG_CPU)) return 0; WRITE_ONCE(rcu_state.n_online_cpus, rcu_state.n_online_cpus - 1); - /* Adjust any no-longer-needed kthreads. */ - rcu_boost_kthread_setaffinity(rnp, -1); // Stop-machine done, so allow nohz_full to disable tick. tick_dep_clear(TICK_DEP_BIT_RCU); return 0; -- 2.25.1