]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
NFS: Always provide aligned buffers to the RPC read layers
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 27 Aug 2021 18:00:56 +0000 (14:00 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 30 Aug 2021 17:21:38 +0000 (13:21 -0400)
commit8cfb9015280d49f9d92d5b0f88cedf5f0856c0fd
tree3c29d644da945946c0e48e8ccde199dde67864f8
parent2a7a451a9084877a0b9d335c77d57e4cda1e5882
NFS: Always provide aligned buffers to the RPC read layers

Instead of messing around with XDR padding in the RDMA layer, we should
just give the RPC layer an aligned buffer. Try to avoid creating extra
RPC calls by aligning to the smaller value of ALIGN(len, rsize) and
PAGE_SIZE.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/read.c