]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
NFS: Add missing encode / decode sequence_maxsz to v4.2 operations
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 1 Mar 2019 21:09:56 +0000 (16:09 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit698e668607598b4db355ea28fd00c3fa7c4bb4e3
tree8ebdeba1088bbbff2292fdaf9defd8c1f05bd9de
parent6cc817d2d761930de3773259c66a98efbd6cbcac
NFS: Add missing encode / decode sequence_maxsz to v4.2 operations

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 1a3466aed3a17eed41cd9411f89eb637f58349b0 ]

These really should have been there from the beginning, but we never
noticed because there was enough slack in the RPC request for the extra
bytes. Chuck's recent patch to use au_cslack and au_rslack to compute
buffer size shrunk the buffer enough that this was now a problem for
SEEK operations on my test client.

Fixes: f4ac1674f5da4 ("nfs: Add ALLOCATE support")
Fixes: 2e72448b07dc3 ("NFS: Add COPY nfs operation")
Fixes: cb95deea0b4aa ("NFS OFFLOAD_CANCEL xdr")
Fixes: 624bd5b7b683c ("nfs: Add DEALLOCATE support")
Fixes: 1c6dcbe5ceff8 ("NFS: Implement SEEK")
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/nfs/nfs42xdr.c