diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-02-07 15:13:04 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-02-07 15:25:52 +0100 |
commit | 2275cde4ccb319ae1eb1c6c717f0e547e62019ee (patch) | |
tree | 21cc3a457909badb0fbefae2e4c05290e89b336a /net/sunrpc/xprt.c | |
parent | Merge tag 'nfs-rdma-for-4.16-2' of git://git.linux-nfs.org/projects/anna/linu... (diff) | |
download | linux-2275cde4ccb319ae1eb1c6c717f0e547e62019ee.tar.xz linux-2275cde4ccb319ae1eb1c6c717f0e547e62019ee.zip |
SUNRPC: Queue latency-sensitive socket tasks to xprtiod
The response to a write_space notification is very latency sensitive,
so we should queue it to the lower latency xprtiod_workqueue. This
is something we already do for the other cases where an rpc task
holds the transport XPRT_LOCKED bitlock.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r-- | net/sunrpc/xprt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 2436fd1125fc..8f0ad4f268da 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -517,7 +517,8 @@ void xprt_write_space(struct rpc_xprt *xprt) if (xprt->snd_task) { dprintk("RPC: write space: waking waiting task on " "xprt %p\n", xprt); - rpc_wake_up_queued_task(&xprt->pending, xprt->snd_task); + rpc_wake_up_queued_task_on_wq(xprtiod_workqueue, + &xprt->pending, xprt->snd_task); } spin_unlock_bh(&xprt->transport_lock); } |