]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: Clean up nfsd_splice_actor()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 7 Apr 2022 20:48:24 +0000 (16:48 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 19 May 2022 16:25:38 +0000 (12:25 -0400)
commitbac71a04c9671a28c091b2fec8f369a68e2a0cdd
tree319ff0c63cde72c62c7ebe7dc80cde0439b68ae3
parent5f5b2831b70551bf649e397c96f0601d15240ab7
NFSD: Clean up nfsd_splice_actor()

nfsd_splice_actor() checks that the page being spliced does not
match the previous element in the svc_rqst::rq_pages array. We
believe this is to prevent a double put_page() in cases where the
READ payload is partially contained in the xdr_buf's head buffer.

However, the NFSD READ proc functions no longer place any part of
the READ payload in the head buffer, in order to properly support
NFS/RDMA READ with Write chunks. Therefore, simplify the logic in
nfsd_splice_actor() to remove this unnecessary check.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/vfs.c