]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
NFS: NFS client underestimates how large an NFSv4 SETATTR reply can be
authorChuck Lever <chuck.lever@oracle.com>
Tue, 8 May 2007 22:23:28 +0000 (18:23 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 May 2007 21:58:00 +0000 (17:58 -0400)
The maximum size of an NFSv4 SETATTR compound reply should include the
GETATTR operation that we send.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4xdr.c

index b8c28f2380a5bcf2aacb48cb45294df65379d21d..f1e2b8cdf33c62e93a518b17ef85de7d034b577a 100644 (file)
@@ -224,7 +224,8 @@ static int nfs4_stat_to_errno(int);
                                 encode_getattr_maxsz)
 #define NFS4_dec_setattr_sz     (compound_decode_hdr_maxsz + \
                                 decode_putfh_maxsz + \
-                                op_decode_hdr_maxsz + 3)
+                                op_decode_hdr_maxsz + 3 + \
+                                nfs4_fattr_maxsz)
 #define NFS4_enc_fsinfo_sz     (compound_encode_hdr_maxsz + \
                                encode_putfh_maxsz + \
                                encode_fsinfo_maxsz)