]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Revert cde47f9f9ed9
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)
commitd456e5780078514652b89f7c81122409c9fb6af6
tree21c4a953e6e86a93f1b780f3b18c6451ad8e059b
parent0124fe7771509b18dd0847e73d204b6e27dcdf06
xprtrdma: Revert cde47f9f9ed9

Commit f4f738094173 ("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: cde47f9f9ed9 ("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