blob: 5010b55628b4755bab2c3e01f1042efd20beec10 [file] [log] [blame]
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +04001#ifndef __LOCKD_NETNS_H__
2#define __LOCKD_NETNS_H__
3
Stanislav Kinsbursky08d44a32012-07-25 16:56:50 +04004#include <linux/fs.h>
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +04005#include <net/netns/generic.h>
6
7struct lockd_net {
8 unsigned int nlmsvc_users;
Stanislav Kinsbursky3cf7fb02012-07-25 16:56:11 +04009 unsigned long next_gc;
Stanislav Kinsburskycaa4e762012-07-25 16:56:19 +040010 unsigned long nrhosts;
Stanislav Kinsbursky66547b02012-07-25 16:56:43 +040011
12 struct delayed_work grace_period_end;
Stanislav Kinsbursky08d44a32012-07-25 16:56:50 +040013 struct lock_manager lockd_manager;
Stanislav Kinsburskydb9c4552012-07-25 16:57:13 +040014 struct list_head grace_list;
Stanislav Kinsburskye9406db2012-09-18 13:37:12 +040015
16 spinlock_t nsm_clnt_lock;
17 unsigned int nsm_users;
18 struct rpc_clnt *nsm_clnt;
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +040019};
20
21extern int lockd_net_id;
22
23#endif