Skip to content

Commit 5f1e77b

Browse files
committed
SUNRPC: Remove unused function rpc_clnt_xprt_switch_put()
Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent ec677b5 commit 5f1e77b

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

include/linux/sunrpc/clnt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ void rpc_clnt_probe_trunked_xprts(struct rpc_clnt *,
252252

253253
const char *rpc_proc_name(const struct rpc_task *task);
254254

255-
void rpc_clnt_xprt_switch_put(struct rpc_clnt *);
256255
void rpc_clnt_xprt_switch_add_xprt(struct rpc_clnt *, struct rpc_xprt *);
257256
void rpc_clnt_xprt_switch_remove_xprt(struct rpc_clnt *, struct rpc_xprt *);
258257
bool rpc_clnt_xprt_switch_has_addr(struct rpc_clnt *clnt,

net/sunrpc/clnt.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3247,14 +3247,6 @@ rpc_set_connect_timeout(struct rpc_clnt *clnt,
32473247
}
32483248
EXPORT_SYMBOL_GPL(rpc_set_connect_timeout);
32493249

3250-
void rpc_clnt_xprt_switch_put(struct rpc_clnt *clnt)
3251-
{
3252-
rcu_read_lock();
3253-
xprt_switch_put(rcu_dereference(clnt->cl_xpi.xpi_xpswitch));
3254-
rcu_read_unlock();
3255-
}
3256-
EXPORT_SYMBOL_GPL(rpc_clnt_xprt_switch_put);
3257-
32583250
void rpc_clnt_xprt_set_online(struct rpc_clnt *clnt, struct rpc_xprt *xprt)
32593251
{
32603252
struct rpc_xprt_switch *xps;

0 commit comments

Comments
 (0)