]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e3c8c7d53b4f781394b3bfb7852472573450703
tree5b392c34b573400b3077934c78c7b575a5bec41d
parent08c9b6a0523eb8d777407b7c2a286e202d8a3164
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: 38cf6d4cdc18 ("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