Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp566751rdb; Tue, 16 Jan 2024 08:50:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwqTicMa5IttetNYav0wic6AACNbwwki3gwPQY04iCVyo5B8RMw9wpnCU9wBBc50htUla2 X-Received: by 2002:a17:906:179a:b0:a2c:33ce:8c92 with SMTP id t26-20020a170906179a00b00a2c33ce8c92mr3403570eje.39.1705423848766; Tue, 16 Jan 2024 08:50:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705423848; cv=none; d=google.com; s=arc-20160816; b=SkPBYTDH6pf+OSHAk7n8AeYsw3O4Qb9W7dWj9mL7N33RwCnXZjeVHigCAt7zanv2Ds 3UJhPtgLidy5V1v8OVYLVO2uHozW2GCpxZHRzUXKLzxecUGXKifNPMMpBrJhqcM0+xn/ d/6gdr3Nm4nOuNXhCoD3Qs+ZHuxqGgUqGTwYcuyrlLgJCjQ3FXJB4h0w6W+IeK93Bl5x ekGM5NVj2+w3El1nh4AR0vk4htTNXnFQClkBcm5tet1ehuWaEy4qFcTf4AMj+PAz92xZ +dcaskx0cDmhvETYRz4ef1YnSSXsNV+QhCC09/SdCbMVBtPuiXyaEfS6v+u1bTsQ3QSn Vd9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=+KsLHXcttsQfSsvg+H6w3LqgBJZa/chaAlYqWUgxluk=; fh=avwkFBjpmo5c+BURmXdoYGeYpqqRHBMyxjNkNfUI4dk=; b=hWXU+dGiarx992CQUOuA1+a9RNFnqiuYcWjdsBhhF2fjPgaBp83shdToMyKWWOCHwM 73FErM08EGcFRCy1yq1L3mpoSkXW4+muV8PkOP9zH0A0Ix76nSwQtjwM70+21toA5nKy qVbDW6Chrr8iPqC5a9EiWTX011+Yr4NUCLZHVSuNp6GcYj3zs2Cm4LiCsdQxrgW1+/uF vsvrK83XJVBN45MELmIH6UExhOtTlbVSVmYTsJj92JJic3WaORuUPf8hPyR1VK9f7id1 IeIctxiv1m0OlyZsEsVofBIUK8m/ksPp1J2nNSaRqwayKWCiILnoqWTykzbxv9MxDGn3 1Y2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sECyj7ns; spf=pass (google.com: domain of linux-kernel+bounces-27590-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l11-20020a170906230b00b00a2afcee0880si4896624eja.340.2024.01.16.08.50.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 08:50:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27590-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sECyj7ns; spf=pass (google.com: domain of linux-kernel+bounces-27590-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 823381F252C9 for ; Tue, 16 Jan 2024 16:50:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 868731C6B0; Tue, 16 Jan 2024 16:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sECyj7ns" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B978C1BF3D; Tue, 16 Jan 2024 16:50:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20690C433F1; Tue, 16 Jan 2024 16:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705423838; bh=2NPjzps+hJ+aAwUViw/dVtWsbpS2ZynMXSxeOnl8abA=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=sECyj7ns3TuopVn59k97q26ied+kCapNq22izPEJWbJP1Mhof5souh6+5pWT9qIHL BJOriWroXYFjbgNCUGoNSjOvpieAZ613hJoTkaRTPbdxiZDc1ageTrG/CsPvCgksQx Tt1XmN9mIfVAlqjkTmTGyTTY+qotN1HM3XaZNGkYM7yXTWVFqDwlmO1Aw92XPK0pBd Fhlm1d2URKXwlDGao0khj/36je+iaZf4D8YR+IP597Qs4TT7bJcfqAp05OO2pDDiEp /diRbsuVL+c2We5mbtVNTIhHWqsDYtZ3qFgukdkrLsYJqFG5WIkSRSo8QQIz5o766l DVrUlF4ti2oDA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id DC23ECE04A3; Tue, 16 Jan 2024 08:50:35 -0800 (PST) Date: Tue, 16 Jan 2024 08:50:35 -0800 From: "Paul E. McKenney" To: Onkarnarth Cc: frederic@kernel.org, quic_neeraju@quicinc.com, joel@joelfernandes.org, josh@joshtriplett.org, boqun.feng@gmail.com, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, qiang.zhang1211@gmail.com, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, r.thapliyal@samsung.com, maninder1.s@samsung.com, tj@kernel.org, oleg@redhat.com, peterz@infradead.org Subject: Re: [PATCH 1/1] rcu/sync: remove un-used rcu_sync_enter_start function Message-ID: Reply-To: paulmck@kernel.org References: <20240111092722.322454-1-onkarnath.1@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240111092722.322454-1-onkarnath.1@samsung.com> On Thu, Jan 11, 2024 at 02:57:22PM +0530, Onkarnarth wrote: > From: Onkarnath > > With commit '6a010a49b63a ("cgroup: Make !percpu threadgroup_rwsem > operations optional")' usage of rcu_sync_enter_start is removed. > > So this function can also be removed. > > Signed-off-by: Onkarnath > Signed-off-by: Maninder Singh Adding Oleg, Peter, and Tejun for their thoughts. Any objections? Thanx, Paul > --- > include/linux/rcu_sync.h | 1 - > kernel/rcu/sync.c | 16 ---------------- > 2 files changed, 17 deletions(-) > > diff --git a/include/linux/rcu_sync.h b/include/linux/rcu_sync.h > index 0027d4c8087c..3860dbb9107a 100644 > --- a/include/linux/rcu_sync.h > +++ b/include/linux/rcu_sync.h > @@ -37,7 +37,6 @@ static inline bool rcu_sync_is_idle(struct rcu_sync *rsp) > } > > extern void rcu_sync_init(struct rcu_sync *); > -extern void rcu_sync_enter_start(struct rcu_sync *); > extern void rcu_sync_enter(struct rcu_sync *); > extern void rcu_sync_exit(struct rcu_sync *); > extern void rcu_sync_dtor(struct rcu_sync *); > diff --git a/kernel/rcu/sync.c b/kernel/rcu/sync.c > index e550f97779b8..86df878a2fee 100644 > --- a/kernel/rcu/sync.c > +++ b/kernel/rcu/sync.c > @@ -24,22 +24,6 @@ void rcu_sync_init(struct rcu_sync *rsp) > init_waitqueue_head(&rsp->gp_wait); > } > > -/** > - * rcu_sync_enter_start - Force readers onto slow path for multiple updates > - * @rsp: Pointer to rcu_sync structure to use for synchronization > - * > - * Must be called after rcu_sync_init() and before first use. > - * > - * Ensures rcu_sync_is_idle() returns false and rcu_sync_{enter,exit}() > - * pairs turn into NO-OPs. > - */ > -void rcu_sync_enter_start(struct rcu_sync *rsp) > -{ > - rsp->gp_count++; > - rsp->gp_state = GP_PASSED; > -} > - > - > static void rcu_sync_func(struct rcu_head *rhp); > > static void rcu_sync_call(struct rcu_sync *rsp) > -- > 2.25.1 >