diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-11-26 07:21:58 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-28 10:13:50 -0500 |
commit | c9a4962881929df7f1ef6e63e1b9da304faca4dd (patch) | |
tree | 2ab9a198beb2eac07c6d324cedee7d1fb1be42eb /fs/nfsd/netns.h | |
parent | ec28e02ca5f2a4287c19c585f8be2d9b3ba123ea (diff) |
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.h | 3 |
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 { | |||
81 | struct list_head close_lru; | 81 | struct list_head close_lru; |
82 | 82 | ||
83 | struct delayed_work laundromat_work; | 83 | struct delayed_work laundromat_work; |
84 | |||
85 | /* client_lock protects the client lru list and session hash table */ | ||
86 | spinlock_t client_lock; | ||
84 | }; | 87 | }; |
85 | 88 | ||
86 | extern int nfsd_net_id; | 89 | extern int nfsd_net_id; |