[pnfs] [PATCH 1/1] nfs41: Fix session recovery client xdr max alloc

Dean Hildebrand seattleplus at gmail.com
Thu Feb 7 19:16:57 EST 2008


Signed-off-by: Dean Hildebrand <dhildeb at us.ibm.com>
---
 fs/nfs/nfs4xdr.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 2c55050..7cea9e9 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -257,11 +257,12 @@ 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 + /* fore and back chan */ \
+					4 + 4 + 16 /* auth sys */)
+#define decode_create_session_maxsz	(op_decode_hdr_maxsz + \
+					 XDR_QUADLEN(NFS4_MAX_SESSIONID_LEN) + \
+					 2 + 6 + 2 + 6 + 2)
 #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 + \
-- 
1.5.3.3



More information about the pNFS mailing list