From: Stanislav Kinsbursky <skinsbursky@parallels.com>
To: Trond.Myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org, xemul@parallels.com, neilb@suse.de,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
jbottomley@parallels.com, bfields@fieldses.org,
davem@davemloft.net, devel@openvz.org
Subject: [PATCH 0/6] Lockd: make it network namespace aware
Date: Tue, 31 Jan 2012 15:07:38 +0400 [thread overview]
Message-ID: <20120131105712.14364.88911.stgit@localhost6.localdomain6> (raw)
With this patch set Lockd will be able to handle lock requests from different
network namespaces separately.
Main ideas of the patch set are:
1) per-net Lockd users counter and resources.
2) nlmsvc_users counter become global one (equal to sum of all per-net
counters).
3) On lockd_up() call:
a) if nlmsvc_users if equal to 0, then lockd thread is started.
b) if current per-net counter equal to 0, then per-net resources are allocated
(lockd_up_net() function).
c) global and current net users counters are increased by one.
4) On lockd_down() call:
a) global and current net users counters are decreased by one.
b) if current per-net counter become equal to 0, then per-net resources are
allocated (lockd_down_net() function).
c) if nlmsvc_users become equal to 0, then lockd thread is stopped.
The following series consists of:
---
Stanislav Kinsbursky (6):
Lockd: create permanent lockd sockets in current network namespace
Lockd: pernet usage counter introduced
Lockd: per-net up and down routines introduced
LockD: make nlm hosts network namespace aware
LockD: make NSM network namespace aware
Lockd: shutdown NLM hosts in network namespace context
fs/lockd/clntlock.c | 3 +
fs/lockd/host.c | 42 ++++++++++++---
fs/lockd/mon.c | 13 +++--
fs/lockd/netns.h | 12 ++++
fs/lockd/svc.c | 117 +++++++++++++++++++++++++++++++++++++------
fs/nfs/client.c | 1
include/linux/lockd/bind.h | 1
include/linux/lockd/lockd.h | 5 +-
include/linux/sunrpc/svc.h | 2 +
net/sunrpc/svc.c | 3 +
10 files changed, 166 insertions(+), 33 deletions(-)
create mode 100644 fs/lockd/netns.h
next reply other threads:[~2012-01-31 11:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-31 11:07 Stanislav Kinsbursky [this message]
2012-01-31 11:07 ` [PATCH 1/6] Lockd: create permanent lockd sockets in current network namespace Stanislav Kinsbursky
2012-01-31 11:07 ` [PATCH 2/6] Lockd: pernet usage counter introduced Stanislav Kinsbursky
2012-01-31 11:08 ` [PATCH 3/6] Lockd: per-net up and down routines introduced Stanislav Kinsbursky
2012-01-31 11:08 ` [PATCH 4/6] LockD: make nlm hosts network namespace aware Stanislav Kinsbursky
2012-01-31 11:08 ` [PATCH 5/6] LockD: make NSM " Stanislav Kinsbursky
2012-01-31 11:08 ` [PATCH 6/6] Lockd: shutdown NLM hosts in network namespace context Stanislav Kinsbursky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120131105712.14364.88911.stgit@localhost6.localdomain6 \
--to=skinsbursky@parallels.com \
--cc=Trond.Myklebust@netapp.com \
--cc=bfields@fieldses.org \
--cc=davem@davemloft.net \
--cc=devel@openvz.org \
--cc=jbottomley@parallels.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
--cc=netdev@vger.kernel.org \
--cc=xemul@parallels.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).