From: "Benjamin Coddington" <bcodding@redhat.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: chuck.lever@oracle.com, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] NFSD: Keep existing listners on portlist error
Date: Wed, 06 Oct 2021 10:43:14 -0400 [thread overview]
Message-ID: <053E93B5-0DFB-4A20-9742-F3894E2BE224@redhat.com> (raw)
In-Reply-To: <20211006143335.GA15343@fieldses.org>
On 6 Oct 2021, at 10:33, J. Bruce Fields wrote:
> On Wed, Oct 06, 2021 at 10:18:05AM -0400, Benjamin Coddington wrote:
>> If nfsd has existing listening sockets without any processes, then an
>> error
>> returned from svc_create_xprt() for an additional transport will
>> remove
>> those existing listeners. We're seeing this in practice when
>> userspace
>> attempts to create rpcrdma transports without having the rpcrdma
>> modules
>> present before creating nfsd kernel processes. Fix this by checking
>> for
>> existing sockets before callingn nfsd_destroy().
>
> That seems like an improvement.
>
> I'm curious, though, what the rpc.nfsd behavior is on partial failure.
> And what do we want it to be?
>
> If a user runs rpc.nfsd expecting it to start up tcp and rdma, but
> rdma
> fails, do we want rpc.nfsd to succeed or fail? Should it exit with
> nfsd
> running or not?
I lean toward having it fail - but I think that's a different patch for
rpc.nfsd. Right now rpc.nfsd exists without error, but you end up
without
any listeners at all.
Do you want a patch for rpc.nfsd instead?
Ben
next prev parent reply other threads:[~2021-10-06 14:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-06 14:18 [PATCH] NFSD: Keep existing listners on portlist error Benjamin Coddington
2021-10-06 14:22 ` Benjamin Coddington
2021-10-06 14:22 ` Chuck Lever III
2021-10-06 14:33 ` J. Bruce Fields
2021-10-06 14:43 ` Benjamin Coddington [this message]
2021-10-06 14:46 ` J. Bruce Fields
2021-10-06 17:16 ` Benjamin Coddington
2021-10-06 17:20 ` [PATCH v2] NFSD: Keep existing listeners " Benjamin Coddington
2021-10-06 17:27 ` Chuck Lever III
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=053E93B5-0DFB-4A20-9742-F3894E2BE224@redhat.com \
--to=bcodding@redhat.com \
--cc=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
/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).