aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-23 12:26:31 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-06 18:48:03 -0500
commitdc03085834a4530b2514708a643cd3fe38f35b21 (patch)
treefa90ddfeb798295d42783a8a336b4cd905f7fed1 /fs/nfs/netns.h
parent28cd1b3f262dba56b5e335ba668e342d530f6129 (diff)
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.h1
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 {
12#ifdef CONFIG_NFS_V4 12#ifdef CONFIG_NFS_V4
13 struct idr cb_ident_idr; /* Protected by nfs_client_lock */ 13 struct idr cb_ident_idr; /* Protected by nfs_client_lock */
14#endif 14#endif
15 spinlock_t nfs_client_lock;
15}; 16};
16 17
17extern int nfs_net_id; 18extern int nfs_net_id;