Skip to content

Commit ccae70a

Browse files
author
J. Bruce Fields
committed
nfsd4: estimate sequence response size
Otherwise a following patch would turn off all 4.1 zero-copy reads. Signed-off-by: J. Bruce Fields <[email protected]>
1 parent b86cef6 commit ccae70a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fs/nfsd/nfs4proc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,12 @@ static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op
15651565
+ op_encode_change_info_maxsz) * sizeof(__be32);
15661566
}
15671567

1568+
static inline u32 nfsd4_sequence_rsize(struct svc_rqst *rqstp,
1569+
struct nfsd4_op *op)
1570+
{
1571+
return NFS4_MAX_SESSIONID_LEN + 20;
1572+
}
1573+
15681574
static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)
15691575
{
15701576
return (op_encode_hdr_size + nfs4_fattr_bitmap_maxsz) * sizeof(__be32);

0 commit comments

Comments
 (0)