summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky2012-11-26 13:21:58 +0100
committerJ. Bruce Fields2012-11-28 16:13:50 +0100
commitc9a4962881929df7f1ef6e63e1b9da304faca4dd (patch)
tree2ab9a198beb2eac07c6d324cedee7d1fb1be42eb /fs/nfsd/netns.h
parentnfsd4: remove state lock from nfs4_state_shutdown (diff)
downloadkernel-qcow2-linux-c9a4962881929df7f1ef6e63e1b9da304faca4dd.tar.gz
kernel-qcow2-linux-c9a4962881929df7f1ef6e63e1b9da304faca4dd.tar.xz
kernel-qcow2-linux-c9a4962881929df7f1ef6e63e1b9da304faca4dd.zip
nfsd: make client_lock per net
This lock protects the client lru list and session hash table, which are allocated per network namespace already. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/netns.h')
-rw-r--r--fs/nfsd/netns.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h
index 227b93ebb622..08d5fa1ce82a 100644
--- a/fs/nfsd/netns.h
+++ b/fs/nfsd/netns.h
@@ -81,6 +81,9 @@ struct nfsd_net {
struct list_head close_lru;
struct delayed_work laundromat_work;
+
+ /* client_lock protects the client lru list and session hash table */
+ spinlock_t client_lock;
};
extern int nfsd_net_id;