xprtrdma: Disconnect after an ib_post_send() immediate error
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 Aug 2021 18:44:17 +0000 (14:44 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 9 Aug 2021 20:40:51 +0000 (16:40 -0400)
commit1143129e4d0d27740ce680d2fb0161ad4f27aa7e
tree8056c95d7554060931335f97b4a9f3f6b79d48d3
parentbe17b8caf3a3a20c4d910265a6287b07ab444795
xprtrdma: Disconnect after an ib_post_send() immediate error

ib_post_send() does not disconnect the QP when it returns an
immediate error. Thus, the code that posts LocalInv has to
explicitly disconnect after an immediate error. This is just
like the frwr_send() callers handle it.

If a disconnect isn't done here, the transport deadlocks.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/frwr_ops.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h