]> 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)
commitff41b87c9a05ad510f1406bf16b8e8a8fe90acde
tree85743d02287e488622cf0504281973b455af8387
parentc2247c84ca86a1a7ef6a06a662ed680f49422ed8
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