All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Lockd: make it network namespace aware
@ 2012-01-31 11:07 Stanislav Kinsbursky
  2012-01-31 11:07 ` [PATCH 1/6] Lockd: create permanent lockd sockets in current network namespace Stanislav Kinsbursky
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Stanislav Kinsbursky @ 2012-01-31 11:07 UTC (permalink / raw)
  To: Trond.Myklebust
  Cc: linux-nfs, xemul, neilb, netdev, linux-kernel, jbottomley,
	bfields, davem, devel

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-31 11:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-31 11:07 [PATCH 0/6] Lockd: make it network namespace aware Stanislav Kinsbursky
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.