mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
SUNRPC: Make rpc_clnt store the multipath iterators
This is a pre-patch for the RPC multipath code. It sets up the storage in struct rpc_clnt for the multipath code. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
80b14d5e61
commit
ad01b2c68d
4 changed files with 35 additions and 7 deletions
|
@ -648,10 +648,10 @@ static struct rpc_task *rpcb_call_async(struct rpc_clnt *rpcb_clnt, struct rpcbi
|
|||
static struct rpc_clnt *rpcb_find_transport_owner(struct rpc_clnt *clnt)
|
||||
{
|
||||
struct rpc_clnt *parent = clnt->cl_parent;
|
||||
struct rpc_xprt *xprt = rcu_dereference(clnt->cl_xprt);
|
||||
struct rpc_xprt_switch *xps = rcu_access_pointer(clnt->cl_xpi.xpi_xpswitch);
|
||||
|
||||
while (parent != clnt) {
|
||||
if (rcu_dereference(parent->cl_xprt) != xprt)
|
||||
if (rcu_access_pointer(parent->cl_xpi.xpi_xpswitch) != xps)
|
||||
break;
|
||||
if (clnt->cl_autobind)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue