]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Revert 3166c73afcb1
authorChuck Lever <chuck.lever@oracle.com>
Wed, 26 May 2021 19:35:20 +0000 (15:35 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 27 May 2021 12:46:19 +0000 (08:46 -0400)
commitf43bf6063dc223a4a0a064ad99cad8ee6e6262de
tree21c4a953e6e86a93f1b780f3b18c6451ad8e059b
parent4418487a671919678a0c56f3d1fce8465765fc6e
xprtrdma: Revert 3166c73afcb1

Commit 89a4fba7ff58 ("SUNRPC: Clean up the handling of page padding
in rpc_prepare_reply_pages()") [Dec 2020] affects RPC Replies that
have a data payload (i.e., Write chunks).

rpcrdma_prepare_readch(), as its name suggests, sets up Read chunks
which are data payloads within RPC Calls. Those payloads are
constructed by xdr_write_pages(), which continues to stuff the call
buffer's tail kvec with the payload's XDR roundup. Thus removing
the tail buffer logic in rpcrdma_prepare_readch() was the wrong
thing to do.

Fixes: 3166c73afcb1 ("xprtrdma: Clean up rpcrdma_prepare_readch()")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtrdma/rpc_rdma.c