Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5952859rwl; Wed, 22 Mar 2023 04:45:56 -0700 (PDT) X-Google-Smtp-Source: AK7set+1hmBkIz2iWandwnOdpfh3EhvJezmW4JBZQiYDCDPOx2pN4SY8JgXfHY8gyDoS5IzX0v0y X-Received: by 2002:a17:903:11d2:b0:19e:8688:86fe with SMTP id q18-20020a17090311d200b0019e868886femr2873177plh.42.1679485556574; Wed, 22 Mar 2023 04:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679485556; cv=none; d=google.com; s=arc-20160816; b=zBOyZFW39rne52q4I+HZkke9+CybPT+cA9DbZ058AqdPUudtzoVA1Cz3mi6yx0heGj KGDTbLfeHTfva/UgTh5KeIfh9YWpnSWICn0FQz697Gy9NpzG+ebYfKXCEfAxZ+t5EiUH jCvIekfOp8NdZmSOI7+0UtLDbyyWEhpsX6F2IEjH5ipnoZ+IewZxpKY9qIWSKl3DiwYT UbKBN75iwc/qRzuFsz7XEE2tLkfgwt6fIAW0s9XmCXrNVQs+ibMwvVle7a9YVfNlDmbG Fv6BAdNkLbOvVMuX0JXFcgF7Pr5J4j4HdnfmajTZieXkA23IokKEiWGS5zvWn0qvyryt Kwmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=/9BEKCP0Z/i0jt2T0t/SZxn043SC3/E/qRL6qdSzd1I=; b=SI6iXFav9N7tLuT09TPAoUZz5zLOY74il3mkJsRpHGmFUz6D/2ys8765ol8QspO1+z drU0ugWZuQ6W7Y4isgBVIwdPgm4VuQAIiRXjyzBFZhOPmL0V31mIEyj5pldE6ldio/Rj K4BB+6vnrmuO4zn4Dc6REjNYXmSgHvi19Cuv2XWH6+d1pLCYh8z5DjwkDJYBlILjIiL6 xjn4X5XOmfzSru78yLY/TYPCoOdVriTtasyJkN+MSpBaX1YSNSGvCMKQhqCXZXcr/Jcb p2IiQhrpwNobA0VV5r+fDF4qyLye98Yj3OgHbsngC6hSj+e2ObUcREEHS3CFbuYVDC58 WjjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DLTQNunN; 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 a15-20020a170902eccf00b0019f3d6dfd19si15652699plh.471.2023.03.22.04.45.45; Wed, 22 Mar 2023 04:45:56 -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=@intel.com header.s=Intel header.b=DLTQNunN; 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 S229905AbjCVLnj (ORCPT + 99 others); Wed, 22 Mar 2023 07:43:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbjCVLnh (ORCPT ); Wed, 22 Mar 2023 07:43:37 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D85822A17; Wed, 22 Mar 2023 04:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679485408; x=1711021408; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=yKRlI5y9bcnhFzUxINJn9nGvLAKcMTT01x+wzzrAUoA=; b=DLTQNunNN1L6he5p7lKp710ebeNY9SZIm+3oOa9Eh1RVJ+astUM5S7tO wDynW57eeVoLnGRonwv8xt/thzVSjpJYbtUhJp2NLVyk4wNpqt/6iB7zD kGEcaeLlFojIeMUkSA1RTw7kM229KNFgFu1z9iwDd2ENVGH/kY3SkqWTn cPp02ncHdrM24TBfhtrYIM+uy2QfKTQ7ZEeq+4eWMSTHlfxytv219CNZc uXi7ZSiXtlyaqqNXSMIFhY/n28vUly7Cpio/e9936/dQ2baJACzaY5AgU E+Uo9AV+yH209SWxAhU4VkFomHCTfSMV6/cmEIzW3GXwkTemsbYFMenu5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10656"; a="327570441" X-IronPort-AV: E=Sophos;i="5.98,281,1673942400"; d="scan'208";a="327570441" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 04:43:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10656"; a="746261281" X-IronPort-AV: E=Sophos;i="5.98,281,1673942400"; d="scan'208";a="746261281" Received: from qiuxu-clx.sh.intel.com ([10.239.53.109]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 04:43:24 -0700 From: Qiuxu Zhuo To: paulmck@kernel.org Cc: dave@stgolabs.net, frederic@kernel.org, jiangshanlai@gmail.com, joel@joelfernandes.org, josh@joshtriplett.org, linux-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com, qiuxu.zhuo@intel.com, quic_neeraju@quicinc.com, rcu@vger.kernel.org, rostedt@goodmis.org Subject: [PATCH v4 0/2] Stop kfree_scale_thread thread(s) after unloading rcuscale Date: Wed, 22 Mar 2023 19:42:39 +0800 Message-Id: <20230322114241.88118-1-qiuxu.zhuo@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=unavailable 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 v1 -> v2: - Move rcu_scale_cleanup() after kfree_scale_cleanup() to eliminate the declaration of kfree_scale_cleanup(). - Remove the unnecessary step "modprobe torture" from the commit message. - Add the description for why move rcu_scale_cleanup() after kfree_scale_cleanup() to the commit message. v2 -> v3: - Split the single v2 patch into two patches. - Move the commit message description for why move rcu_scale_cleanup() after kfree_scale_cleanup() to Patch 1. v3 -> v4 (No function changes): - Rebased Patch 1 & 2 on top of the rcu "-dev" branch. - Added two "Reviewed-by" tags to the commit message of Patch 2. Qiuxu Zhuo (2): rcu/rcuscale: Move rcu_scale_*() after kfree_scale_cleanup() rcu/rcuscale: Stop kfree_scale_thread thread(s) after unloading rcuscale kernel/rcu/rcuscale.c | 199 ++++++++++++++++++++++-------------------- 1 file changed, 102 insertions(+), 97 deletions(-) base-commit: 86b3da94693e412ca43d996a7e6ed5766ef7a5f4 -- 2.17.1