2012-01-31 15:07:57 +04:00
|
|
|
#ifndef __LOCKD_NETNS_H__
|
|
|
|
#define __LOCKD_NETNS_H__
|
|
|
|
|
2012-07-25 16:56:50 +04:00
|
|
|
#include <linux/fs.h>
|
2012-01-31 15:07:57 +04:00
|
|
|
#include <net/netns/generic.h>
|
|
|
|
|
|
|
|
struct lockd_net {
|
|
|
|
unsigned int nlmsvc_users;
|
2012-07-25 16:56:11 +04:00
|
|
|
unsigned long next_gc;
|
2012-07-25 16:56:19 +04:00
|
|
|
unsigned long nrhosts;
|
2012-07-25 16:56:43 +04:00
|
|
|
|
|
|
|
struct delayed_work grace_period_end;
|
2012-07-25 16:56:50 +04:00
|
|
|
struct lock_manager lockd_manager;
|
2012-07-25 16:57:13 +04:00
|
|
|
struct list_head grace_list;
|
2012-09-18 13:37:12 +04:00
|
|
|
|
|
|
|
spinlock_t nsm_clnt_lock;
|
|
|
|
unsigned int nsm_users;
|
|
|
|
struct rpc_clnt *nsm_clnt;
|
2012-01-31 15:07:57 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
extern int lockd_net_id;
|
|
|
|
|
|
|
|
#endif
|