28cd1b3f26
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>
20 lines
396 B
C
20 lines
396 B
C
#ifndef __NFS_NETNS_H__
|
|
#define __NFS_NETNS_H__
|
|
|
|
#include <net/net_namespace.h>
|
|
#include <net/netns/generic.h>
|
|
|
|
struct nfs_net {
|
|
struct cache_detail *nfs_dns_resolve;
|
|
struct rpc_pipe *bl_device_pipe;
|
|
struct list_head nfs_client_list;
|
|
struct list_head nfs_volume_list;
|
|
#ifdef CONFIG_NFS_V4
|
|
struct idr cb_ident_idr; /* Protected by nfs_client_lock */
|
|
#endif
|
|
};
|
|
|
|
extern int nfs_net_id;
|
|
|
|
#endif
|