Linux NFS development
 help / color / mirror / Atom feed
From: Trond Myklebust <trondmy@hammerspace.com>
To: "lionelcons1972@gmail.com" <lionelcons1972@gmail.com>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: Concerns about ENETUNREACH patch series Re: [PATCH v2 0/4] Ensure that ENETUNREACH terminates state recovery
Date: Tue, 25 Mar 2025 20:42:23 +0000	[thread overview]
Message-ID: <72cd09e31f3f9a6d2c6087ca793cadf67e24e58c.camel@hammerspace.com> (raw)
In-Reply-To: <CAPJSo4W2y4gF1tP9LSmqXkSr+TEz9COLPePcJVDxoJB79QUeJQ@mail.gmail.com>

On Tue, 2025-03-25 at 20:40 +0100, Lionel Cons wrote:
> On Tue, 25 Mar 2025 at 17:19, <trondmy@kernel.org> wrote:
> > 
> > From: Trond Myklebust <trond.myklebust@hammerspace.com>
> > 
> > With the recent patch series that caused containerised mounts which
> > return ENETUNREACH or ENETDOWN errors to report fatal errors, we
> > also
> > want to ensure that the state manager thread also triggers fatal
> > errors
> > in the processes or threads that are waiting for recovery to
> > complete.
> > 
> > ---
> > v2:
> >  - Return EIO instead of ENETUNREACH in nfs4_wait_clnt_recover()
> > 
> > Trond Myklebust (4):
> >   SUNRPC: rpcbind should never reset the port to the value '0'
> >   SUNRPC: rpc_clnt_set_transport() must not change the autobind
> > setting
> >   NFSv4: clp->cl_cons_state < 0 signifies an invalid nfs_client
> >   NFSv4: Treat ENETUNREACH errors as fatal for state recovery
> > 
> >  fs/nfs/nfs4state.c     | 14 +++++++++++---
> >  net/sunrpc/clnt.c      |  3 ---
> >  net/sunrpc/rpcb_clnt.c |  5 +++--
> >  3 files changed, 14 insertions(+), 8 deletions(-)
> 
> 1. Can this "ENETUNREACH or ENETDOWN are fatal" feature be turned
> off?
> 
> 2. We have concerns about this feature - what will happen if a switch
> or router gets rebooted? What will happen if you unplug your laptop?
> What will happen if you enable/disable your VPN software on a machine
> or container? What will happen if you switch WIFIs on your laptop?
> 
> All these scenarios will trigger a temporary ENETUNREACH or ENETDOWN,
> and should NOT be fatal for mounts or containers.

TL;DR: Yes, you can turn it off using a mount option, but we preserve
the existing hard mount behaviour unless you are actually mounting in a
container.

See the description in the first series of patches:
https://lore.kernel.org/linux-nfs/2a37ba5a-f212-4456-a7c1-3f96b1148b3b@oracle.com/T/#mf3df4516c5fcb0ef22c1c1c6f5433535f4d4805a



-- 
Trond Myklebust
Linux NFS client maintainer, Hammerspace
trond.myklebust@hammerspace.com



      reply	other threads:[~2025-03-25 20:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-25 16:17 [PATCH v2 0/4] Ensure that ENETUNREACH terminates state recovery trondmy
2025-03-25 16:17 ` [PATCH v2 1/4] SUNRPC: rpcbind should never reset the port to the value '0' trondmy
2025-03-25 17:56   ` Jeff Layton
2025-03-25 16:17 ` [PATCH v2 2/4] SUNRPC: rpc_clnt_set_transport() must not change the autobind setting trondmy
2025-03-25 17:55   ` Jeff Layton
2025-03-25 16:17 ` [PATCH v2 3/4] NFSv4: clp->cl_cons_state < 0 signifies an invalid nfs_client trondmy
2025-03-25 17:59   ` Jeff Layton
2025-03-25 18:48     ` Trond Myklebust
2025-03-25 19:44       ` Jeff Layton
2025-03-25 20:30         ` Trond Myklebust
2025-03-25 16:17 ` [PATCH v2 4/4] NFSv4: Treat ENETUNREACH errors as fatal for state recovery trondmy
2025-03-25 18:04   ` Jeff Layton
2025-03-25 18:50     ` Trond Myklebust
2025-03-25 19:26       ` Jeff Layton
2025-03-25 19:40 ` Concerns about ENETUNREACH patch series Re: [PATCH v2 0/4] Ensure that ENETUNREACH terminates " Lionel Cons
2025-03-25 20:42   ` Trond Myklebust [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=72cd09e31f3f9a6d2c6087ca793cadf67e24e58c.camel@hammerspace.com \
    --to=trondmy@hammerspace.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=lionelcons1972@gmail.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