Lockd: pernet usage counter introduced
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Tue, 31 Jan 2012 11:07:57 +0000 (15:07 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 15 Feb 2012 05:19:47 +0000 (00:19 -0500)
commita9c5d73a8d8cb37601f8c39b35b9b4128e1a5254
tree0ae70dea76c0039e5fa0f62e12001c82a0d1647a
parentc228fa2038a33bb3b87f567482124f452e162a71
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>
fs/lockd/netns.h [new file with mode: 0644]
fs/lockd/svc.c