OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/3] lockd: use per-net refrence-counted NSM clients
Re: [PATCH 0/3] lockd: use per-net refrence-counted NSM clients [message #47849 is a reply to message #47843] Fri, 14 September 2012 17:01 Go to previous messageGo to previous message
Chuck Lever is currently offline  Chuck Lever
Messages: 5
Registered: May 2012
Junior Member
What happens if statd is restarted?

Sent from my iPhonespam SPAMSPAM

On Sep 14, 2012, at 10:25 AM, Stanislav Kinsbursky <skinsbursky@parallels.com> wrote:

> This is a bug fix for https://bugzilla.redhat.com/show_bug.cgi?id=830862.
>
> The problem is that with NFSv4 mount in container (with separated mount
> namesapce) and active lock on it, dying child reaped of this container will
> try to umount NFS and doing this will try to create RPC client to send
> unmonitor request to statd.
> But creation of RCP client requires valid current->nsproxy (for operation with
> utsname()) and during umount on child reaper exit it's equal to zero.
>
> Proposed solution is to introduce refrence-counter per-net NSM client, which
> is created on fist monitor call and destroyed after the lst monitor call.
>
> The following series implements...
>
> ---
>
> Stanislav Kinsbursky (3):
> lockd: use rpc client's cl_nodename for id encoding
> lockd: per-net NSM client creation and destruction helpers introduced
> lockd: create and use per-net NSM RPC clients on MON/UNMON requests
>
>
> fs/lockd/mon.c | 91 +++++++++++++++++++++++++++++++++++++++++++-----------
> fs/lockd/netns.h | 4 ++
> fs/lockd/svc.c | 1 +
> 3 files changed, 77 insertions(+), 19 deletions(-)
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH 0/6] fuse: allocate req-&gt;pages[] dynamically
Next Topic: [PATCH v2 0/3] lockd: use per-net refrence-counted NSM clients
Goto Forum:
  


Current Time: Fri Aug 22 02:04:49 GMT 2025

Total time taken to generate the page: 0.06032 seconds