summaryrefslogtreecommitdiff
path: root/fs/nfsd/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-11-26 15:21:58 +0300
committerJ. Bruce Fields <bfields@redhat.com>2012-11-28 10:13:50 -0500
commitc9a4962881929df7f1ef6e63e1b9da304faca4dd (patch)
tree2ab9a198beb2eac07c6d324cedee7d1fb1be42eb /fs/nfsd/netns.h
parentec28e02ca5f2a4287c19c585f8be2d9b3ba123ea (diff)
downloadlwn-c9a4962881929df7f1ef6e63e1b9da304faca4dd.tar.gz
lwn-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;