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/xprtsock.c | |
parent | ad01b2c68d0ac5f3d4a3f807bec77b720b1c62a0 (diff) | |
download | linux-fb43d17210baa538e58fc83d2d0f8a32399db73b.tar.bz2 |
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/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index fde2138b81e7..65e759569e48 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -1844,9 +1844,7 @@ static int xs_bind(struct sock_xprt *transport, struct socket *sock) */ static void xs_local_rpcbind(struct rpc_task *task) { - rcu_read_lock(); - xprt_set_bound(rcu_dereference(task->tk_client->cl_xprt)); - rcu_read_unlock(); + xprt_set_bound(task->tk_xprt); } static void xs_local_set_port(struct rpc_xprt *xprt, unsigned short port) |