]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 12:52:27 +0000 (14:52 +0200)
commita7342df30797b8e62d2c67cf8d7a34f4ecfbd875
tree72a1282056477cb7b046c4a2d51d2c117b866223
parentef65498c8087bfe87bec01299b30ae7d683d1ccd
xprtrdma: Remap Receive buffers after a reconnect

[ Upstream commit 895cedc1791916e8a98864f12b656702fad0bb67 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/xprtrdma/verbs.c