diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-23 17:26:31 +0000 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-06 18:48:03 -0500 |
commit | dc03085834a4530b2514708a643cd3fe38f35b21 (patch) | |
tree | fa90ddfeb798295d42783a8a336b4cd905f7fed1 /fs/nfs/netns.h | |
parent | 28cd1b3f262dba56b5e335ba668e342d530f6129 (diff) | |
download | linux-stable-dc03085834a4530b2514708a643cd3fe38f35b21.tar.gz linux-stable-dc03085834a4530b2514708a643cd3fe38f35b21.tar.bz2 linux-stable-dc03085834a4530b2514708a643cd3fe38f35b21.zip |
NFS: make nfs_client_lock per net ns
This patch makes nfs_clients_lock allocated per network namespace. All items it
protects are already network namespace aware.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/netns.h')
-rw-r--r-- | fs/nfs/netns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/netns.h b/fs/nfs/netns.h index 547cc9525ba2..7baad89ae60e 100644 --- a/fs/nfs/netns.h +++ b/fs/nfs/netns.h @@ -12,6 +12,7 @@ struct nfs_net { #ifdef CONFIG_NFS_V4 struct idr cb_ident_idr; /* Protected by nfs_client_lock */ #endif + spinlock_t nfs_client_lock; }; extern int nfs_net_id; |