nfsd: make lockowner_ino_hashtbl allocated per net
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Wed, 14 Nov 2012 15:21:46 +0000 (18:21 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Nov 2012 12:40:47 +0000 (07:40 -0500)
commit20e9e2bc98b907efe82621797c561f6169d63d96
treed3325479970ab864d03df647fe2e1e447563d46a
parent9b5311374057e5c87017ea3756e566047c9b61e7
nfsd: make lockowner_ino_hashtbl allocated per net

This hash holds file lock owners 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