summaryrefslogtreecommitdiffstats
path: root/fs/nfs/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-23 18:26:31 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-07 00:48:03 +0100
commitdc03085834a4530b2514708a643cd3fe38f35b21 (patch)
treefa90ddfeb798295d42783a8a336b4cd905f7fed1 /fs/nfs/netns.h
parentNFS: make cb_ident_idr per net ns (diff)
downloadlinux-dc03085834a4530b2514708a643cd3fe38f35b21.tar.xz
linux-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.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 {
#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;