public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Luis Henriques <luis@igalia.com>
To: lsf-pc@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org
Cc: Miklos Szeredi <miklos@szeredi.hu>,
	Amir Goldstein <amir73il@gmail.com>,
	Bernd Schubert <bernd@bsbernd.com>,
	Horst Birthelmer <horst@birthelmer.de>,
	Joanne Koong <joannelkoong@gmail.com>,
	"Darrick J. Wong" <djwong@kernel.org>
Subject: [LSF/MM/BPF TOPIC] FUSE servers restartability
Date: Fri, 23 Jan 2026 11:16:07 +0000	[thread overview]
Message-ID: <87cy301sw8.fsf@wotan.olymp> (raw)

Hi all,

I would like to propose the user-space FUSE servers restartability topic
for discussion in the next LSF/MM/BPF Summit.  I'm sure there are several
scenarios where restarting a FUSE server without the need for an
unmount/mount cycle is desirable, but the first two that always come to my
mind are:

1) Software bugs: there's a crash in the FUSE server (or in libfuse) and
   we want to be able to restart the server without applications that have
   open files in the file system to notice it.

2) Software upgrades: there is a new version of the FUSE server (or
   libfuse) available and we want to do the upgrade without any downtime.

Over the years, there have been a few threads in the mailing-lists about
this topic, the most recent one started by myself[1].  This thread
triggered the work on the FUSE_LOOKUP_HANDLE operation implementation[2],
which is currently work-in-progress.

What I would like to bring to LSF/MM/BPF, besides any extra details still
open regarding the FUSE_LOOKUP_HANDLE implementation, is what else could
be done in the kernel that would ease the implementation of a user-space
server that could be restarted.

There are two obvious things that would be helpful to have:

  - The implementation of a NOTIFY_RESEND_LOOKUPS operation, which would
    allow FUSE servers to request the kernel to resend all cached inodes
    after the restart.  This new operation could probably be merged into
    the existing NOTIFY_RESEND, by setting a flag in the request, for
    example.

  - The implementation of a NOTIFY_RESEND_INIT operation to request the
    kernel to resend the FUSE parameters that have been negotiated during
    INIT.  Or maybe it would be interesting to have a NOTIFY_REINIT
    instead, so that the FUSE server could actually modify the parameters
    initially negotiated.  This could be useful, for example, when doing a
    server upgrade that would support different features.

There's also the ability of keeping the /dev/fuse file descriptor open
across the server restart.  We could add some helpers for that in libfuse,
but since this is mostly a solved problem if we use systemd file
descriptor store[3], this is a low-priority topic and probably not worth
discussing it.

Hopefully this topic will allow to identify other potential issues and/or
ideas for improving the ability to restart FUSE servers.

[1] https://lore.kernel.org/all/8734afp0ct.fsf@igalia.com
[2] https://lore.kernel.org/all/20251212181254.59365-1-luis@igalia.com
[3] https://systemd.io/FILE_DESCRIPTOR_STORE/

Cheers,
-- 
Luís

                 reply	other threads:[~2026-01-23 11:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87cy301sw8.fsf@wotan.olymp \
    --to=luis@igalia.com \
    --cc=amir73il@gmail.com \
    --cc=bernd@bsbernd.com \
    --cc=djwong@kernel.org \
    --cc=horst@birthelmer.de \
    --cc=joannelkoong@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=miklos@szeredi.hu \
    /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