All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chuck Lever" <cel@kernel.org>
To: "Amir Goldstein" <amir73il@gmail.com>
Cc: "Jan Kara" <jack@suse.cz>,
	"Christian Brauner" <brauner@kernel.org>,
	"Jan Kara" <jack@suse.com>, NeilBrown <neilb@ownmail.net>,
	"Jeff Layton" <jlayton@kernel.org>,
	"Olga Kornievskaia" <okorniev@redhat.com>,
	"Dai Ngo" <dai.ngo@oracle.com>, "Tom Talpey" <tom@talpey.com>,
	linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	"Chuck Lever" <chuck.lever@oracle.com>
Subject: Re: [PATCH v3 1/3] fs: add umount notifier chain for filesystem unmount notification
Date: Sun, 01 Mar 2026 13:19:02 -0500	[thread overview]
Message-ID: <07a2af61-6737-4e47-ad69-652af18eb47b@app.fastmail.com> (raw)
In-Reply-To: <CAOQ4uxiO+NCjhBme=YWCfnVyhJ=Zcg4zmnfoRspJab3n5waSCA@mail.gmail.com>



On Sun, Mar 1, 2026, at 1:09 PM, Amir Goldstein wrote:
> On Sun, Mar 1, 2026 at 6:21 PM Chuck Lever <cel@kernel.org> wrote:
>> Perhaps that description nails down too much implementation detail,
>> and it might be stale. A broader description is this user story:
>>
>> "As a system administrator, I'd like to be able to unexport an NFSD
>
> Doesn't "unexporting" involve communicating to nfsd?
> Meaning calling to svc_export_put() to path_put() the
> share root path?
>
>> share that is being accessed by NFSv4 clients, and then unmount it,
>> reliably (for example, via automation). Currently the umount step
>> hangs if there are still outstanding delegations granted to the NFSv4
>> clients."
>
> Can't svc_export_put() be the trigger for nfsd to release all resources
> associated with this share?

Currently unexport does not revoke NFSv4 state. So, that would
be a user-visible behavior change. I suggested that approach a
few months ago to linux-nfs@ and there was push-back.


>> The discussion here has added some interesting corner cases: NFSD
>> can export bind mounts (portions of a local physical file system);
>> unprivileged users can create and umount file systems using "share".
>
> The basic question is whether nfsd is exporting a mount, a filesystem
> or something in between (i.e. a subtree of a filesystem).
>
> AFAIK, the current implementation is that nfsd is actually exporting
> one specific mount, so changing the properties of this mount
> (e.g. readonly) would affect the exported share.

AIUI NFSD can export starting at any arbitrary directory
that appears in the mount namespace. It does not have to
start at the local file system's root directory. But even
so, outstanding NFSv4 delegations on a narrow portion of
a mounted file system will still pin that mount.

-- 
Chuck Lever

  reply	other threads:[~2026-03-01 18:19 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-24 16:39 [PATCH v3 0/3] Automatic NFSv4 state revocation on filesystem unmount Chuck Lever
2026-02-24 16:39 ` [PATCH v3 1/3] fs: add umount notifier chain for filesystem unmount notification Chuck Lever
2026-02-26  8:48   ` Christian Brauner
2026-02-26 10:52     ` Amir Goldstein
2026-02-26 13:27       ` Chuck Lever
2026-02-26 13:32         ` Jan Kara
2026-02-27 15:10           ` Chuck Lever
2026-03-01 14:37             ` Amir Goldstein
2026-03-01 17:20               ` Chuck Lever
2026-03-01 18:09                 ` Amir Goldstein
2026-03-01 18:19                   ` Chuck Lever [this message]
2026-03-02  4:09                     ` NeilBrown
2026-03-02 13:57                       ` Chuck Lever
2026-03-02 15:26                         ` Jan Kara
2026-03-02 17:10                           ` Jeff Layton
2026-03-02 17:37                             ` Jan Kara
2026-03-02 17:53                               ` Jeff Layton
2026-03-04 13:17                                 ` Christian Brauner
2026-03-04 15:15                                   ` Chuck Lever
2026-03-02 20:46                               ` NeilBrown
2026-03-02 17:01                         ` Chuck Lever
2026-03-02 20:36                           ` NeilBrown
2026-03-03 20:02                             ` Chuck Lever
2026-03-03 21:23                               ` NeilBrown
2026-03-03 22:50                                 ` Chuck Lever
2026-03-04  1:01                                   ` NeilBrown
2026-03-04 13:05                             ` Christian Brauner
2026-02-24 16:39 ` [PATCH v3 2/3] nfsd: revoke NFSv4 state when filesystem is unmounted Chuck Lever
2026-02-24 16:39 ` [PATCH v3 3/3] nfsd: close cached files on filesystem unmount Chuck Lever
2026-02-24 17:14 ` [PATCH v3 0/3] Automatic NFSv4 state revocation " Al Viro

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=07a2af61-6737-4e47-ad69-652af18eb47b@app.fastmail.com \
    --to=cel@kernel.org \
    --cc=amir73il@gmail.com \
    --cc=brauner@kernel.org \
    --cc=chuck.lever@oracle.com \
    --cc=dai.ngo@oracle.com \
    --cc=jack@suse.com \
    --cc=jack@suse.cz \
    --cc=jlayton@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@ownmail.net \
    --cc=okorniev@redhat.com \
    --cc=tom@talpey.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 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.