xprtrdma: Fix helper that drains the transport
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Cc [email protected] # v5.0+
--- net/sunrpc/xprtrdma/verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Hi-
Here's another one for v5.1-rc and stable.
net/sunrpc/xprtrdma/verbs.c +1 -1
@@ -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