Skip to contentSkip to conversation

xprtrdma: Fix helper that drains the transport

PATCH New Chuck Lever 1 participant 1 message Apr 9, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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 ... ")
---
 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
index 89a6339..30cfc0e 100644
@@ -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