diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-11-26 15:21:58 +0300 |
---|---|---|
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) | |
download | blackbird-op-linux-c9a4962881929df7f1ef6e63e1b9da304faca4dd.tar.gz blackbird-op-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.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 { 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; |