]> git.baikalelectronics.ru Git - 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)
commitd0ee149acef0b632d7c62aa85ab313918d948901
tree3c29d644da945946c0e48e8ccde199dde67864f8
parent8c062ac2113021037f470bf0a5b051aa8564f104
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