mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
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: 6d2d0ee27c ("xprtrdma: Replace rpcrdma_receive_wq ... ")
Signed-off-by: Chuck Lever <[email protected]>
Cc: [email protected] # v5.0+
Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
committed by
Trond Myklebust
parent
29e7ca715f
commit
e1ede312f1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user