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)
commita1f26739ccdcc6967617998bd200dd907f7ff80a
tree4f7304d98c8e71b2a039c8090453cd5f7d3655e4
parentac9645c87380e39a8fa87a1b51721efcdea89dbf
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