]> 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)
commit11885306443b192d916cb91d501c882415485fe7
tree5b392c34b573400b3077934c78c7b575a5bec41d
parent117c91be381405f6a691026bf0b0702b94751d84
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: 54e0d934f4e5 ("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