From: "bfields@fieldses.org" <bfields@fieldses.org>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>,
Dave Jones <davej@redhat.com>,
"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: 3.4. sunrpc oops during shutdown
Date: Tue, 29 May 2012 07:21:41 -0400 [thread overview]
Message-ID: <20120529112140.GA1946@fieldses.org> (raw)
In-Reply-To: <1338248617.3057.5.camel@lade.trondhjem.org>
On Mon, May 28, 2012 at 11:43:40PM +0000, Myklebust, Trond wrote:
> On Fri, 2012-05-25 at 17:31 +0400, Stanislav Kinsbursky wrote:
> > Yes. But unfortunately, this won't be enough.
> > "NFS: callback threads containerization" patch set is required as well.
> >
> > A a bugfix, I can suggest "SUNRPC: separate per-net data creation from service"
> > patch set + pass hard-coded "init_net" for NFS callback shutdown routines
> > (instead of current->nsproxy->net_ns). This should work.
>
> Hi Stanislav,
>
> My question is why should svc_destroy() care about net namespaces at
> all? Once an application is calling svc_destroy(), it is trying to close
> down the entire service. It really should not matter to which net
> namespace a particular socket belongs: they _all_ need to be destroyed.
Services started in different network namespaces should be
independent--for example, starting nfsd in container A and then again in
container B, then shutting it down in container A, shouldn't also shut
down container B's service.
*But* there is currently only a single global server object, because
we're sharing threads:
http://marc.info/?l=linux-nfs&m=133405747330055&w=2
"Having Lockd thread (or NFSd threads) per container looks easy
to implement on first sight. But kernel threads currently
supported only in initial pid namespace. I.e. it means that
per-container kernel thread won't be visible in container, if it
has it's own pid namespace. And there is no way to put a kernel
thread into container. In OpenVZ we have per-container kernel
threads. But integrating this feature to mainline looks hopeless
(or very difficult) to me. At least for now. So this problem
with signals remains unsolved.
"So, as it looks to me, this "one service per all" is the only
one suitable for now."
so Stanislav is simulating multiple servers by shutting down sockets on
a per-net basis.
But I think it should be possible to share threads between servers while
still behaving in every other way as if the servers are completely
independent.
--b.
prev parent reply other threads:[~2012-05-29 11:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 17:14 3.4. sunrpc oops during shutdown Dave Jones
2012-05-21 18:03 ` Myklebust, Trond
2012-05-21 21:34 ` bfields
2012-05-24 15:55 ` bfields
2012-05-24 19:20 ` Myklebust, Trond
2012-05-24 20:27 ` bfields
2012-05-25 8:12 ` Stanislav Kinsbursky
2012-05-25 13:07 ` Myklebust, Trond
2012-05-25 13:31 ` Stanislav Kinsbursky
2012-05-28 23:43 ` Myklebust, Trond
2012-05-29 8:48 ` Stanislav Kinsbursky
2012-05-29 11:21 ` bfields [this message]
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=20120529112140.GA1946@fieldses.org \
--to=bfields@fieldses.org \
--cc=Trond.Myklebust@netapp.com \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=skinsbursky@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).