]> 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)
commitca21bd5045723657836a98ed8c968c38bc738997
tree3c29d644da945946c0e48e8ccde199dde67864f8
parentb6f5d6e990dc0b582cb072941387114500159d09
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