]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: make unconf_id_hashtbl allocated per net
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Wed, 14 Nov 2012 15:21:31 +0000 (18:21 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Nov 2012 12:40:45 +0000 (07:40 -0500)
commit768ea2b97cc2c1e5c58c037629dca63e41e4d496
tree396517a26f3363dd9bab053f82ae556d77a8cc00
parent05044ce2081f7d72a0e5f111c69987ccfca56f58
nfsd: make unconf_id_hashtbl allocated per net

This hash holds nfs4_clients info, which are network namespace aware.
So let's make it allocated per network namespace.

Note: this hash can be allocated in per-net operations. But it looks
better to allocate it on nfsd state start and thus don't waste resources
if server is not running.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/netns.h
fs/nfsd/nfs4state.c