]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: make sessionid_hashtbl allocated per net
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Wed, 14 Nov 2012 15:21:51 +0000 (18:21 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Nov 2012 12:40:47 +0000 (07:40 -0500)
commit66c9d9771c4d59ef7ad5440136ac6005a99d766c
tree807822b296dab38e1fad9ffacefe40b2757c3f1e
parent5d8417be18f8afe1513997ca7c7b500d1504ebe4
nfsd: make sessionid_hashtbl allocated per net

This hash holds established sessions state and closely associated with
nfs4_clients info, which are network namespace aware. So let's make it
allocated per network namespace too.

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