]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.2: improve page handling for GETXATTR
authorFrank van der Linden <fllinden@amazon.com>
Wed, 2 Dec 2020 00:34:11 +0000 (00:34 +0000)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 14 Dec 2020 11:51:07 +0000 (06:51 -0500)
commit98f3d9e04273f84315a3c48f59d9ae4ff40a8484
tree4f7304d98c8e71b2a039c8090453cd5f7d3655e4
parent1a3ec740728354795b84e8c2458ffe1ee1b8956e
NFSv4.2: improve page handling for GETXATTR

XDRBUF_SPARSE_PAGES can cause problems for the RDMA transport,
and it's easy enough to allocate enough pages for the request
up front, so do that.

Also, since we've allocated the pages anyway, use the full
page aligned length for the receive buffer. This will allow
caching of valid replies that are too large for the caller,
but that still fit in the allocated pages.

Signed-off-by: Frank van der Linden <fllinden@amazon.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs42proc.c
fs/nfs/nfs42xdr.c