OSDN Git Service

xprtrdma: Revert 586a0787ce35
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)
commitae605ee9830840f14566a3b1cde27fa8096dbdd4
tree21c4a953e6e86a93f1b780f3b18c6451ad8e059b
parente67afa7ee4a59584d7253e45d7f63b9528819a13
xprtrdma: Revert 586a0787ce35

Commit 9ed5af268e88 ("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: 586a0787ce35 ("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