xprtrdma: Fix helper that drains the transport
authorChuck Lever <chuck.lever@oracle.com>
Tue, 9 Apr 2019 21:04:09 +0000 (17:04 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 11 Apr 2019 19:23:48 +0000 (15:23 -0400)
commite1ede312f17e96a9c5cda9aaa1cdcf442c1a5da8
tree5b392c34b573400b3077934c78c7b575a5bec41d
parent29e7ca715f2a0b6c0a99b1aec1b0956d1f271955
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>
net/sunrpc/xprtrdma/verbs.c