summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMiquel van Smoorenburg <mikevs@xs4all.net>2010-09-12 19:55:26 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-09-12 19:55:26 -0400
commitdb5fe26541b6b48460104a0d949a27cdc7786957 (patch)
treeb14418c090e078e1a5eba29d6da710d9cc7de94f /net
parent651b2933b22a0c060e6bb940c4104eb447a61f9a (diff)
downloadlinux-stable-db5fe26541b6b48460104a0d949a27cdc7786957.tar.gz
linux-stable-db5fe26541b6b48460104a0d949a27cdc7786957.tar.bz2
linux-stable-db5fe26541b6b48460104a0d949a27cdc7786957.zip
sunrpc: increase MAX_HASHTABLE_BITS to 14
The maximum size of the authcache is now set to 1024 (10 bits), but on our server we need at least 4096 (12 bits). Increase MAX_HASHTABLE_BITS to 14. This is a maximum of 16384 entries, each containing a pointer (8 bytes on x86_64). This is exactly the limit of kmalloc() (128K). Signed-off-by: Miquel van Smoorenburg <mikevs@xs4all.net> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index 36cb66022a27..e9eaaf7d43c1 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -38,7 +38,7 @@ static const struct rpc_authops *auth_flavors[RPC_AUTH_MAXFLAVOR] = {
static LIST_HEAD(cred_unused);
static unsigned long number_cred_unused;
-#define MAX_HASHTABLE_BITS (10)
+#define MAX_HASHTABLE_BITS (14)
static int param_set_hashtbl_sz(const char *val, const struct kernel_param *kp)
{
unsigned long num;