[pnfs] [PATCH 1/1] nfs41: Fix create_session client xdr max alloc
Benny Halevy
bhalevy at panasas.com
Sun Feb 10 11:11:55 EST 2008
Applied onto the nfs41-d19 branch.
Benny
On Feb. 08, 2008, 2:31 +0200, Dean Hildebrand <seattleplus at gmail.com> wrote:
> Signed-off-by: Dean Hildebrand <dhildeb at us.ibm.com>
> ---
> fs/nfs/nfs4xdr.c | 10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
> index 2c55050..1998fd4 100644
> --- a/fs/nfs/nfs4xdr.c
> +++ b/fs/nfs/nfs4xdr.c
> @@ -257,11 +257,11 @@ static int nr_sequence_quads;
> 2 + 1 + 1 + 2 + 1 + \
> (NFS4_OPAQUE_LIMIT >> 2) + 1 + \
> (NFS4_OPAQUE_LIMIT >> 2) + 1)
> -#define encode_create_session_maxsz (op_encode_hdr_maxsz + 2 + 4 + \
> - 6 + 6 + /* fore and back chan */ \
> - 3 + 4 + 2 + 4 /* auth sys */)
> -#define decode_create_session_maxsz (op_decode_hdr_maxsz + 4 + 3 + \
> - 3 + 7 + 7)
> +#define encode_create_session_maxsz (op_encode_hdr_maxsz + 2 + 2 + \
> + 7 + 7 + 4 + 4 + 16)
> +#define decode_create_session_maxsz (op_decode_hdr_maxsz + \
> + 2 + 6 + 2 + 6 + 2 + \
> + XDR_QUADLEN(NFS4_MAX_SESSIONID_LEN))
> #define encode_destroy_session_maxsz (op_encode_hdr_maxsz + 4)
> #define decode_destroy_session_maxsz (op_decode_hdr_maxsz)
> #define encode_sequence_maxsz (op_encode_hdr_maxsz + \
More information about the pNFS
mailing list