SUNRPC: Remove unused function rpc_clnt_xprt_switch_put()
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 30 Nov 2023 18:30:15 +0000 (13:30 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 4 Jan 2024 15:47:56 +0000 (10:47 -0500)
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/clnt.h
net/sunrpc/clnt.c

index e9d4377d03c6e78f07a8688bb0bd6a53e2bb8fe8..5e9d1469c6faea4c8de2f408041ae0c18a75dbfd 100644 (file)
@@ -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,
index 4aa838543f79f2cbcfc3d48f9527fcd756c1dc64..8df944444e9b6ce996288874720896a910615362 100644 (file)
@@ -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;