Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2964323rdb; Mon, 4 Dec 2023 12:25:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHHA5OEqjiWk2IY/4ibm/0+PzNqhJM991GFHI0+pUXlCGVuZURgPjBwfs2dAz6I/Ngl3ZY X-Received: by 2002:a37:c24d:0:b0:77e:fba3:a1f5 with SMTP id j13-20020a37c24d000000b0077efba3a1f5mr133013qkm.79.1701721521601; Mon, 04 Dec 2023 12:25:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701721521; cv=none; d=google.com; s=arc-20160816; b=eVVLOypmYDEMx+Hw+ILYnfGLbWzOMmaZlgbiahTA8szw0AM9rhQi0mOM1CEVG7eaSY 3Jncek4XO44AGHoY0LOSi4Hb2ozW2pLH2rA/ddouUW9r+ze310fTen3vp5ADTJoOE8WF pCjg2YWVasDdaCcRT+5UCLw3U7iTm8ZQ7GT5f6Qp7rY0IV5tiT5z4YM+dNmqCafqA0r4 3yV1mt0Mr8x2hWSFQBbnZTILRT6bAhJBQ88aA2B1wdxxt+LGa+KMC575vCqj279m81RD GFthM34vxrWAtT2JuMvXF84F6QqHSmgTqcRX/EvRA7DPFevY3H5ZEnxozQeOAskmKITP 4DFw== 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=2bqTIdW/brTBLzd2si/m/hJN6rVPs62XXKUGzxlhWL4=; fh=zrf3k9maC4LGn/MmcHhRkqh5cHnarsSKx/fWXfAmYNI=; b=BjsO89R13s7AplPWBEJi6PsoXAL3wao66jMOSqQT83ATLcBt+HVhIJSTWQcc8xLnKr +hcgCDLu5nQqgO3j68ftlZeVJ16bcUiqP6AcqMipGUigojXPGR/XnnWiijZD77JaBu9J eayx/dY4KcFzMJg5ES58KxlVPdagecGnErrfely57ZXOKPjRnN4MW7Mrl+hIZnRHixmO pGKZrZNIXMTLWqS16HjeTEvgMKmgFq/hzwKKe3TTcj7GodJM9E4P/43GcnD82a1Wtbov o6/jIucx9x0OFjdZ6GjdZGgz7GeCQRJmjZAcKb7t+Wvhb1o3o3hW/iQrwMo8r8s/oGGg d4pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="AHZPYj/B"; spf=pass (google.com: domain of linux-nfs+bounces-309-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j16-20020a05620a411000b0077d6b5057b4si10534981qko.734.2023.12.04.12.25.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 12:25:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-309-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="AHZPYj/B"; spf=pass (google.com: domain of linux-nfs+bounces-309-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-309-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EC9DB1C20AA0 for ; Mon, 4 Dec 2023 20:25:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9B2334CF0; Mon, 4 Dec 2023 20:25:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AHZPYj/B" 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 BE40934196 for ; Mon, 4 Dec 2023 20:25:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C240C433C9; Mon, 4 Dec 2023 20:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701721515; bh=irUZhZ42IrQH8Et+sietGUtb3Ty5NSU38pZwwlDTXuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AHZPYj/ByJ5DOaUTe8Zm5JIf5KhcycizIxYF44/iGOuyKy0HSlzqumhLnrupwithq 0j5uCkt+5vvZVOqYSIlXI6lmmdPLH3JZPxh5Xzeu4pEHON2uz0ttSXPgUuMv9R8e1E vm4dCxX/UjpvngapL9MMRK9V+oHCw2jZ4+XIykBoEtGTw5PG+r094Gk/JtvALpGuxQ gYhVJSE8rOAJwJY/aaO2/Lqw35olyefqVEwiPwqXKoZ6H3roTlUIaipZoGwWkO1qZv +apaGq4zgOYQDZNZhVpXBnCh32E0DfSeD8MbXOkZ+zjWI/kObQkMON/8uBCiWUl4ey c0M7q1eg2Ap5g== From: Anna Schumaker To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com Cc: anna@kernel.org Subject: [PATCH v2 2/4] SUNRPC: Remove unused function rpc_clnt_xprt_switch_put() Date: Mon, 4 Dec 2023 15:25:10 -0500 Message-ID: <20231204202512.108047-3-anna@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231204202512.108047-1-anna@kernel.org> References: <20231204202512.108047-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 Reviewed-by: Jeff Layton 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