]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xprtrdma: Remap Receive buffers after a reconnect
authorChuck Lever <chuck.lever@oracle.com>
Mon, 3 Jul 2023 18:18:29 +0000 (14:18 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 19 Aug 2023 14:26:29 +0000 (10:26 -0400)
commit895cedc1791916e8a98864f12b656702fad0bb67
tree26e925d02545789454994d8f880eed5213c42370
parentf4e89f1a6dab4c063fc1e823cc9dddc408ff40cf
xprtrdma: Remap Receive buffers after a reconnect

On server-initiated disconnect, rpcrdma_xprt_disconnect() was DMA-
unmapping the Receive buffers, but rpcrdma_post_recvs() neglected
to remap them after a new connection had been established. The
result was immediate failure of the new connection with the Receives
flushing with LOCAL_PROT_ERR.

Fixes: 671c450b6fe0 ("xprtrdma: Fix oops in Receive handler after device removal")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtrdma/verbs.c