diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-23 12:26:22 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-06 18:48:03 -0500 |
commit | 28cd1b3f262dba56b5e335ba668e342d530f6129 (patch) | |
tree | 7ae24e43fe054042800118edb266287125ba34f8 /fs/nfs/netns.h | |
parent | c25d32b26361ce0814fef2281f164866c18c8692 (diff) |
NFS: make cb_ident_idr per net ns
This patch makes ID's infrastructure network namespace aware. This was done
mainly because of nfs_client_lock, which is desired to be per network
namespace, but protects NFS clients ID's.
NOTE: NFS client's net pointer have to be set prior to ID initialization,
proper assignment was moved.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/netns.h b/fs/nfs/netns.h index 0fbd4e017d27..547cc9525ba2 100644 --- a/fs/nfs/netns.h +++ b/fs/nfs/netns.h | |||
@@ -9,6 +9,9 @@ struct nfs_net { | |||
9 | struct rpc_pipe *bl_device_pipe; | 9 | struct rpc_pipe *bl_device_pipe; |
10 | struct list_head nfs_client_list; | 10 | struct list_head nfs_client_list; |
11 | struct list_head nfs_volume_list; | 11 | struct list_head nfs_volume_list; |
12 | #ifdef CONFIG_NFS_V4 | ||
13 | struct idr cb_ident_idr; /* Protected by nfs_client_lock */ | ||
14 | #endif | ||
12 | }; | 15 | }; |
13 | 16 | ||
14 | extern int nfs_net_id; | 17 | extern int nfs_net_id; |