diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-01-30 16:39:26 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-02-05 18:48:55 -0500 |
commit | fb43d17210baa538e58fc83d2d0f8a32399db73b (patch) | |
tree | d67af2d75eb5cdbe8cd45fc7f6ee5fa38a41fbd8 /net/sunrpc/rpcb_clnt.c | |
parent | ad01b2c68d0ac5f3d4a3f807bec77b720b1c62a0 (diff) | |
download | linux-rpi3-fb43d17210baa538e58fc83d2d0f8a32399db73b.tar.gz linux-rpi3-fb43d17210baa538e58fc83d2d0f8a32399db73b.tar.bz2 linux-rpi3-fb43d17210baa538e58fc83d2d0f8a32399db73b.zip |
SUNRPC: Use the multipath iterator to assign a transport to each task
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/rpcb_clnt.c')
-rw-r--r-- | net/sunrpc/rpcb_clnt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c index 44f025c150d8..5b30603596d0 100644 --- a/net/sunrpc/rpcb_clnt.c +++ b/net/sunrpc/rpcb_clnt.c @@ -683,11 +683,9 @@ void rpcb_getport_async(struct rpc_task *task) int status; rcu_read_lock(); - do { - clnt = rpcb_find_transport_owner(task->tk_client); - xprt = xprt_get(rcu_dereference(clnt->cl_xprt)); - } while (xprt == NULL); + clnt = rpcb_find_transport_owner(task->tk_client); rcu_read_unlock(); + xprt = xprt_get(task->tk_xprt); dprintk("RPC: %5u %s(%s, %u, %u, %d)\n", task->tk_pid, __func__, |