]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Refactor rpc_clone_client()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 14 Sep 2012 21:23:52 +0000 (17:23 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 1 Oct 2012 22:32:07 +0000 (15:32 -0700)
commit6eca0c9baeeb1bad3cde4922ec47d54634d689bf
tree85743d02287e488622cf0504281973b455af8387
parent5fbfa8eb67f41be9c82d2f324c425ae30dc821e8
SUNRPC: Refactor rpc_clone_client()

rpc_clone_client() does most of the same tasks as rpc_new_client(),
so there is an opportunity for code re-use.  Create a generic helper
that makes it easy to clone an RPC client while replacing any of the
clnt's parameters.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c