]> 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)
commit364e9ba07c8d6be503b582e3b983361c1b39d8b3
treedc7eeeee9c9731dc0aa0340028d7491aea5c4b26
parenta5365d812e839ece5dd8e3c96b06607b855ba35c
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