]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit16c45e4bb2031621f54ea86cc6ec58a1ef7074fd
treedc7eeeee9c9731dc0aa0340028d7491aea5c4b26
parenta0aae2671699aa6836073f32a3fba2c08395b119
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