]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: increase MAX_HASHTABLE_BITS to 14
authorMiquel van Smoorenburg <mikevs@xs4all.net>
Sun, 12 Sep 2010 23:55:26 +0000 (19:55 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 12 Sep 2010 23:55:26 +0000 (19:55 -0400)
commit222805176b77f688a45e94c21eccd7daf0fbc6ea
treeb14418c090e078e1a5eba29d6da710d9cc7de94f
parent789fb5f7e897751dd7293da14ce3352037529fa3
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>
net/sunrpc/auth.c