]> 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)
commit1b804b8b5efc9555e7e66031cf60b2b709724a47
tree4f7304d98c8e71b2a039c8090453cd5f7d3655e4
parent5deffcc9307ec0bc157dcec556b6c5d7e8c909c2
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