]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Do not wake RPC consumer on a failed LocalInv
authorChuck Lever <chuck.lever@oracle.com>
Mon, 19 Apr 2021 18:03:19 +0000 (14:03 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 26 Apr 2021 13:25:19 +0000 (09:25 -0400)
commitb93605abbc6d56d06578cd6c89b1fd6d65e9b159
treea4ec7a950e0df5bdd1ab5d7d72e9d7a520606f1f
parentc1f1681dd2899681c511fcbce9a65e823ef35411
xprtrdma: Do not wake RPC consumer on a failed LocalInv

Throw away any reply where the LocalInv flushes or could not be
posted. The registered memory region is in an unknown state until
the disconnect completes.

rpcrdma_xprt_disconnect() will find and release the MR. No need to
put it back on the MR free list in this case.

The client retransmits pending RPC requests once it reestablishes a
fresh connection, so a replacement reply should be forthcoming on
the next connection instance.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtrdma/frwr_ops.c
net/sunrpc/xprtrdma/rpc_rdma.c
net/sunrpc/xprtrdma/xprt_rdma.h