summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/verbs.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2019-04-09 23:04:09 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2019-04-11 21:23:48 +0200
commite1ede312f17e96a9c5cda9aaa1cdcf442c1a5da8 (patch)
tree5b392c34b573400b3077934c78c7b575a5bec41d /net/sunrpc/xprtrdma/verbs.c
parentNFS: Fix handling of reply page vector (diff)
downloadlinux-e1ede312f17e96a9c5cda9aaa1cdcf442c1a5da8.tar.xz
linux-e1ede312f17e96a9c5cda9aaa1cdcf442c1a5da8.zip
xprtrdma: Fix helper that drains the transport
We want to drain only the RQ first. Otherwise the transport can deadlock on ->close if there are outstanding Send completions. Fixes: 6d2d0ee27c7a ("xprtrdma: Replace rpcrdma_receive_wq ... ") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: stable@vger.kernel.org # v5.0+ Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to '')
-rw-r--r--net/sunrpc/xprtrdma/verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c
index 89a63391d4d4..30cfc0efe699 100644
--- a/net/sunrpc/xprtrdma/verbs.c
+++ b/net/sunrpc/xprtrdma/verbs.c
@@ -90,7 +90,7 @@ static void rpcrdma_xprt_drain(struct rpcrdma_xprt *r_xprt)
/* Flush Receives, then wait for deferred Reply work
* to complete.
*/
- ib_drain_qp(ia->ri_id->qp);
+ ib_drain_rq(ia->ri_id->qp);
drain_workqueue(buf->rb_completion_wq);
/* Deferred Reply processing might have scheduled