From: J. Bruce Fields Date: Wed, 12 Mar 2014 19:17:18 +0000 (-0400) Subject: nfsd4: allow larger 4.1 session drc slots X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=24906f32378288d74289405231ddbb7120317691;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git nfsd4: allow larger 4.1 session drc slots The client is actually asking for 2532 bytes. I suspect that's a mistake. But maybe we can allow some more. In theory lock needs more if it might return a maximum-length lockowner in the denied case. Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index fda9ce28b1b2..374c66283ac5 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -122,7 +122,7 @@ static inline struct nfs4_delegation *delegstateid(struct nfs4_stid *s) /* Maximum number of operations per session compound */ #define NFSD_MAX_OPS_PER_COMPOUND 16 /* Maximum session per slot cache size */ -#define NFSD_SLOT_CACHE_SIZE 1024 +#define NFSD_SLOT_CACHE_SIZE 2048 /* Maximum number of NFSD_SLOT_CACHE_SIZE slots per session */ #define NFSD_CACHE_SIZE_SLOTS_PER_SESSION 32 #define NFSD_MAX_MEM_PER_SESSION \