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)
commit1b63a75180c6c65c71655c250a4e6b578ba7d1c0
tree85743d02287e488622cf0504281973b455af8387
parent632f0d0503accb8ab749a1165af99d344579c37b
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