SUNRPC: rpc_clnt_add_xprt setup function for NFS layer
authorAndy Adamson <andros@netapp.com>
Fri, 9 Sep 2016 13:22:26 +0000 (09:22 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 19 Sep 2016 17:08:36 +0000 (13:08 -0400)
commitfda0ab41170ee0a1c7a3781ff8cfb4395c3dd784
treedc7eeeee9c9731dc0aa0340028d7491aea5c4b26
parent39e5d2df959dd4aea81fa33d765d2a5cc67a0512
SUNRPC: rpc_clnt_add_xprt setup function for NFS layer

Use a setup function to call into the NFS layer to test an rpc_xprt
for session trunking so as to not leak the rpc_xprt_switch into
the nfs layer.

Search for the address in the rpc_xprt_switch first so as not to
put an unnecessary EXCHANGE_ID on the wire.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/clnt.h
net/sunrpc/clnt.c