Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

SUNRPC rpc_clnt_xprt_switch_add_xprt

Give the NFS layer access to the rpc_xprt_switch_add_xprt function

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>

authored by

Andy Adamson and committed by
Anna Schumaker
dd691717 3b58a8a9

+8
+1
include/linux/sunrpc/clnt.h
··· 201 201 const char *rpc_proc_name(const struct rpc_task *task); 202 202 203 203 void rpc_clnt_xprt_switch_put(struct rpc_clnt *); 204 + void rpc_clnt_xprt_switch_add_xprt(struct rpc_clnt *, struct rpc_xprt *); 204 205 #endif /* __KERNEL__ */ 205 206 #endif /* _LINUX_SUNRPC_CLNT_H */
+7
net/sunrpc/clnt.c
··· 2701 2701 } 2702 2702 EXPORT_SYMBOL_GPL(rpc_clnt_xprt_switch_put); 2703 2703 2704 + void rpc_clnt_xprt_switch_add_xprt(struct rpc_clnt *clnt, struct rpc_xprt *xprt) 2705 + { 2706 + rpc_xprt_switch_add_xprt(rcu_dereference(clnt->cl_xpi.xpi_xpswitch), 2707 + xprt); 2708 + } 2709 + EXPORT_SYMBOL_GPL(rpc_clnt_xprt_switch_add_xprt); 2710 + 2704 2711 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) 2705 2712 static void rpc_show_header(void) 2706 2713 {