summaryrefslogtreecommitdiffstats
path: root/fs/lockd/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-31 15:07:57 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-15 00:19:47 -0500
commita9c5d73a8d8cb37601f8c39b35b9b4128e1a5254 (patch)
tree0ae70dea76c0039e5fa0f62e12001c82a0d1647a /fs/lockd/netns.h
parentc228fa2038a33bb3b87f567482124f452e162a71 (diff)
downloadlinux-a9c5d73a8d8cb37601f8c39b35b9b4128e1a5254.tar.bz2
Lockd: pernet usage counter introduced
Lockd is going to be shared between network namespaces - i.e. going to be able to handle lock requests from different network namespaces. This means, that network namespace related resources have to be allocated not once (like now), but for every network namespace context, from which service is requested to operate. This patch implements Lockd per-net users accounting. New per-net counter is used to determine, when per-net resources have to be freed. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/lockd/netns.h')
-rw-r--r--fs/lockd/netns.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/lockd/netns.h b/fs/lockd/netns.h
new file mode 100644
index 000000000000..ce227e0fbc5c
--- /dev/null
+++ b/fs/lockd/netns.h
@@ -0,0 +1,12 @@
+#ifndef __LOCKD_NETNS_H__
+#define __LOCKD_NETNS_H__
+
+#include <net/netns/generic.h>
+
+struct lockd_net {
+ unsigned int nlmsvc_users;
+};
+
+extern int lockd_net_id;
+
+#endif