Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1332905rdb; Fri, 1 Dec 2023 13:15:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZQcZSILNQumTDclO2Gx6IJqJyzFlqRjZeasXi3aDcQdiyBjcCzCdfdvF+y1O7S3avaCO3 X-Received: by 2002:a2e:978c:0:b0:2c9:996b:3b54 with SMTP id y12-20020a2e978c000000b002c9996b3b54mr1158043lji.53.1701465358928; Fri, 01 Dec 2023 13:15:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701465358; cv=none; d=google.com; s=arc-20160816; b=BxtuYQkrMWGg2kuX2mqu2tBTWhB3YeAWjAtqYLJNKwDzNj9dWgk3fXgvMbQxOVmX5g ICJiEbd/1OmI30DS4gx9zB8jbfTa+sA+Mi7UtxVVJwDQlIlF0l4JBQkt6x47piZLvEtc RMc14I1Q7fY8WRXrTtmFQOfRueGindoUIzl0LgwXEy58Qd5OeauIbH3dTwOr9ewPjXmN 217MmocO1Qqobgd+bT4nUY9Jc0spiJ5hK+RlTrAWTjHOkZaQIAVJM4xIPW8k0jL/At/1 Tb09TrqZikf7ycFsRBnITTT6Uxw9rFstrWikvrUmTVBp9zmK3JLpnrr5QDpXQAkMkQr4 XH1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=W8n7zF5fInjTJ9i0ckRWhjFwsQJNpMGiIHH0pYBvOvY=; fh=zrf3k9maC4LGn/MmcHhRkqh5cHnarsSKx/fWXfAmYNI=; b=KNRbqxZON9PfGqXyKR2xRBht9588SBP2/WvfAcsh3PYINUZyd8oJEbFbesyHf7raI4 4mxDq0aBmyMI41nKwkX23go3QOQqriOJ+oR1p0SCdAhQ0RTdIqB/pJmOtV6RZaUth1gs tcC+cYGmp5yR4ghyWMIev47WdMZ7GaebRiUrNhugb0F+kzKv5OzrCDF8mnoCQuup63xH uf8ViMornxoYRI/5abis67u08Jw3mp2xhDuF3k2Js17wdKJwyTUWw/1sG4z1cKz8Rxhl b1Chp3DOVe/dbcez5MGf7krc3e9bWp5Qi5Iq+IssElueLRgNyEAYVWlfxXhesCzPoct7 Cu4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IMBixVUC; spf=pass (google.com: domain of linux-nfs+bounces-249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-249-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 x9-20020a1709065ac900b00a022177dc08si2050686ejs.282.2023.12.01.13.15.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 13:15:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-249-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=IMBixVUC; spf=pass (google.com: domain of linux-nfs+bounces-249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-249-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 A5BC51F2101C for ; Fri, 1 Dec 2023 21:15:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A73F659B42; Fri, 1 Dec 2023 21:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IMBixVUC" X-Original-To: linux-nfs@vger.kernel.org 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 8B59A59B41 for ; Fri, 1 Dec 2023 21:15:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C281C433CA; Fri, 1 Dec 2023 21:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701465352; bh=UmS+IHDYkesXD8Si5vJK8UA9GUhxxtROQz3yfbjC5Ac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IMBixVUCe56ZfCA6hxTN/bPD2XUyle0GMVVJSK1Gvpn9dGLaDBD/8WxD8wfeFL0IC ThCko+ntor3WYUmteWzGjsgkXHFlX6zmJDTFR5Rq2YgjXv2Rj+3q2yXQsg5Xmxe7WD eO2kg9WuOSSoNCl/rRQQNQN6nHrrre0AImoaXvlaw7ToFNLtUhUkm0B5vaKRnMoPQF fYIRaVEBz5ged2foCmyqB7z8D5VyD90gh5zkv6DmbtdFq+1EfNx4zfAjks1/aAp3Kx Rqb8tvsk3finhlODr3yWIvslXGMeXtYnpp66uFjWwzeHFEqXbwu2juHztX5bESWWk/ oYfaYQwzkK+9w== From: Anna Schumaker To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com Cc: anna@kernel.org Subject: [PATCH 2/4] SUNRPC: Remove unused function rpc_clnt_xprt_switch_put() Date: Fri, 1 Dec 2023 16:15:47 -0500 Message-ID: <20231201211549.126941-3-anna@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231201211549.126941-1-anna@kernel.org> References: <20231201211549.126941-1-anna@kernel.org> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Anna Schumaker Signed-off-by: Anna Schumaker --- include/linux/sunrpc/clnt.h | 1 - net/sunrpc/clnt.c | 8 -------- 2 files changed, 9 deletions(-) diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index e9d4377d03c6..5e9d1469c6fa 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h @@ -252,7 +252,6 @@ void rpc_clnt_probe_trunked_xprts(struct rpc_clnt *, const char *rpc_proc_name(const struct rpc_task *task); -void rpc_clnt_xprt_switch_put(struct rpc_clnt *); void rpc_clnt_xprt_switch_add_xprt(struct rpc_clnt *, struct rpc_xprt *); void rpc_clnt_xprt_switch_remove_xprt(struct rpc_clnt *, struct rpc_xprt *); bool rpc_clnt_xprt_switch_has_addr(struct rpc_clnt *clnt, diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 4aa838543f79..8df944444e9b 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -3247,14 +3247,6 @@ rpc_set_connect_timeout(struct rpc_clnt *clnt, } EXPORT_SYMBOL_GPL(rpc_set_connect_timeout); -void rpc_clnt_xprt_switch_put(struct rpc_clnt *clnt) -{ - rcu_read_lock(); - xprt_switch_put(rcu_dereference(clnt->cl_xpi.xpi_xpswitch)); - rcu_read_unlock(); -} -EXPORT_SYMBOL_GPL(rpc_clnt_xprt_switch_put); - void rpc_clnt_xprt_set_online(struct rpc_clnt *clnt, struct rpc_xprt *xprt) { struct rpc_xprt_switch *xps; -- 2.43.0