aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sched.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-01-30 18:13:05 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-02-05 18:48:55 -0500
commit9d61498d5f6cde68a708781bf2cd33cae21121dc (patch)
tree50e1d1e2d93dfdef8f0ee74fdfb191a95d7613a7 /net/sunrpc/sched.c
parentSUNRPC: Use the multipath iterator to assign a transport to each task (diff)
downloadlinux-dev-9d61498d5f6cde68a708781bf2cd33cae21121dc.tar.xz
linux-dev-9d61498d5f6cde68a708781bf2cd33cae21121dc.zip
SUNRPC: Allow caller to specify the transport to use
This is needed in order to allow the NFSv4.1 backchannel and BIND_CONN_TO_SESSION function to work. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/sched.c')
-rw-r--r--net/sunrpc/sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index 73ad57a59989..fcfd48d263f6 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -909,6 +909,8 @@ static void rpc_init_task(struct rpc_task *task, const struct rpc_task_setup *ta
/* Initialize workqueue for async tasks */
task->tk_workqueue = task_setup_data->workqueue;
+ task->tk_xprt = xprt_get(task_setup_data->rpc_xprt);
+
if (task->tk_ops->rpc_call_prepare != NULL)
task->tk_action = rpc_prepare_task;