FILESYSTEM IN USERSPACE (FUSE) development
 help / color / mirror / Atom feed
From: Miklos Szeredi <mszeredi@redhat.com>
To: fuse-devel@lists.linux.dev, linux-fsdevel@vger.kernel.org
Subject: [PATCH 00/32] fuse: improve transport and fs layer separation
Date: Thu, 16 Apr 2026 11:16:24 +0200	[thread overview]
Message-ID: <20260416091658.462783-1-mszeredi@redhat.com> (raw)

This series is based on fuse-update-7.1 in
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#for-next

The transport layer encompasses:

 - request queuing
 - request timeout
 - data marshaling
 - device I/O

The filesystem layer handles the rest:

 - VFS <-> fuse API translation
 - caching
 - notifications

There are misc functionalities, like tracing and control filesystem, that
don't belong to either layer.  Also cuse.c and virtio_fs.c still have both
transport layer and fs layer parts.

To aid separation, the fields used by the transport layer are split out
from struct fuse_conn and added to a new fuse_chan structure.

Transport layer internal headers:

 - fuse_dev_i.h
 - dev_uring_i.h

Filesystem layer internal header:

 - fuse_i.h

Headers describing the API between the layers:

 - dev.h
 - args.h

Next up: impelement a stripped-down local-only fusex (experimental/
extended) client that can be the base of further work without risking
stability of the main one.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>

---
Miklos Szeredi (32):
  fuse: move request timeout code to a new source file
  fuse: add struct fuse_chan
  fuse: move fuse_iqueue to fuse_chan
  fuse: move fuse_dev and fuse_pqueue to dev.c
  fuse: move 'devices' member from fuse_conn to fuse_chan
  fuse: move background queuing related members to fuse_chan
  fuse: move request blocking related members to fuse_chan
  fuse: move io_uring related members to fuse_chan
  fuse: move interrupt related members to fuse_chan
  fuse: split off fch->lock from fc->lock
  fuse: add back pointer from fuse_chan to fuse_conn
  fuse: move request timeout to fuse_chan
  fuse: move struct fuse_req and related to fuse_dev_i.h
  fuse: don't access transport layer structs directly from the fs layer
  fuse: move forget related struct and helpers
  fuse: move fuse_dev_waitq to dev.c
  fuse: remove #include "fuse_i.h" from "dev_uring_i.h"
  fuse: remove #include "fuse_i.h" from "req_timeout.c"
  fuse: abort related layering cleanup
  fuse: split off fuse_args and related definitions into a separate
    header
  fuse: remove fm arg of args->end callback
  fuse: change req->fm to req->chan
  fuse: split out filesystem part of request sending
  fuse: change fud->fc to fud->chan
  fuse: create poll.c
  fuse: create notify.c
  fuse: set params in fuse_chan_set_initialized()
  fuse: remove fuse_mutex protection from fuse_dev_ioctl_sync_init()
  fuse: change ring->fc to ring->chan
  fuse: remove #include "fuse_i.h" from dev.c and dev_uring.c
  fuse: alloc pqueue before installing fch in fuse_dev
  fuse: simplify fuse_dev_ioctl_clone()

 fs/fuse/Makefile      |    3 +-
 fs/fuse/args.h        |   65 +++
 fs/fuse/backing.c     |    1 +
 fs/fuse/control.c     |   16 +-
 fs/fuse/cuse.c        |   28 +-
 fs/fuse/dev.c         | 1239 +++++++++++++++--------------------------
 fs/fuse/dev.h         |  110 ++++
 fs/fuse/dev_uring.c   |  139 +++--
 fs/fuse/dev_uring_i.h |   37 +-
 fs/fuse/dir.c         |    9 +-
 fs/fuse/file.c        |  146 +----
 fs/fuse/fuse_dev_i.h  |  342 +++++++++++-
 fs/fuse/fuse_i.h      |  412 +-------------
 fs/fuse/fuse_trace.h  |    4 +-
 fs/fuse/inode.c       |  255 ++-------
 fs/fuse/notify.c      |  434 +++++++++++++++
 fs/fuse/poll.c        |  141 +++++
 fs/fuse/req.c         |   99 ++++
 fs/fuse/req_timeout.c |  148 +++++
 fs/fuse/sysctl.c      |    1 +
 fs/fuse/sysctl.h      |    9 +
 fs/fuse/virtio_fs.c   |   21 +-
 22 files changed, 1995 insertions(+), 1664 deletions(-)
 create mode 100644 fs/fuse/args.h
 create mode 100644 fs/fuse/dev.h
 create mode 100644 fs/fuse/notify.c
 create mode 100644 fs/fuse/poll.c
 create mode 100644 fs/fuse/req.c
 create mode 100644 fs/fuse/req_timeout.c
 create mode 100644 fs/fuse/sysctl.h

-- 
2.53.0


             reply	other threads:[~2026-04-16  9:17 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-16  9:16 Miklos Szeredi [this message]
2026-04-16  9:16 ` [PATCH 01/32] fuse: move request timeout code to a new source file Miklos Szeredi
2026-04-16  9:16 ` [PATCH 02/32] fuse: add struct fuse_chan Miklos Szeredi
2026-04-16  9:16 ` [PATCH 03/32] fuse: move fuse_iqueue to fuse_chan Miklos Szeredi
2026-04-16  9:16 ` [PATCH 04/32] fuse: move fuse_dev and fuse_pqueue to dev.c Miklos Szeredi
2026-04-16  9:16 ` [PATCH 05/32] fuse: move 'devices' member from fuse_conn to fuse_chan Miklos Szeredi
2026-04-16  9:16 ` [PATCH 06/32] fuse: move background queuing related members " Miklos Szeredi
2026-04-22 17:53   ` Joanne Koong
2026-04-23  7:20     ` Miklos Szeredi
2026-04-16  9:16 ` [PATCH 07/32] fuse: move request blocking " Miklos Szeredi
2026-04-16  9:16 ` [PATCH 08/32] fuse: move io_uring " Miklos Szeredi
2026-04-16  9:16 ` [PATCH 09/32] fuse: move interrupt " Miklos Szeredi
2026-04-16  9:16 ` [PATCH 10/32] fuse: split off fch->lock from fc->lock Miklos Szeredi
2026-04-16  9:16 ` [PATCH 11/32] fuse: add back pointer from fuse_chan to fuse_conn Miklos Szeredi
2026-04-16  9:16 ` [PATCH 12/32] fuse: move request timeout to fuse_chan Miklos Szeredi
2026-04-16  9:16 ` [PATCH 13/32] fuse: move struct fuse_req and related to fuse_dev_i.h Miklos Szeredi
2026-04-16  9:16 ` [PATCH 14/32] fuse: don't access transport layer structs directly from the fs layer Miklos Szeredi
2026-04-16  9:16 ` [PATCH 15/32] fuse: move forget related struct and helpers Miklos Szeredi
2026-04-16  9:16 ` [PATCH 16/32] fuse: move fuse_dev_waitq to dev.c Miklos Szeredi
2026-04-16  9:16 ` [PATCH 17/32] fuse: remove #include "fuse_i.h" from "dev_uring_i.h" Miklos Szeredi
2026-04-16  9:16 ` [PATCH 18/32] fuse: remove #include "fuse_i.h" from "req_timeout.c" Miklos Szeredi
2026-04-16  9:16 ` [PATCH 19/32] fuse: abort related layering cleanup Miklos Szeredi
2026-04-16  9:16 ` [PATCH 20/32] fuse: split off fuse_args and related definitions into a separate header Miklos Szeredi
2026-04-17 21:52   ` Joanne Koong
2026-04-20 10:14     ` Miklos Szeredi
2026-04-16  9:16 ` [PATCH 21/32] fuse: remove fm arg of args->end callback Miklos Szeredi
2026-04-16  9:16 ` [PATCH 22/32] fuse: change req->fm to req->chan Miklos Szeredi
2026-04-16  9:16 ` [PATCH 23/32] fuse: split out filesystem part of request sending Miklos Szeredi
2026-04-16  9:16 ` [PATCH 24/32] fuse: change fud->fc to fud->chan Miklos Szeredi
2026-04-16  9:16 ` [PATCH 25/32] fuse: create poll.c Miklos Szeredi
2026-04-16  9:16 ` [PATCH 26/32] fuse: create notify.c Miklos Szeredi
2026-04-16  9:16 ` [PATCH 27/32] fuse: set params in fuse_chan_set_initialized() Miklos Szeredi
2026-04-22 17:41   ` Joanne Koong
2026-04-23  7:19     ` Miklos Szeredi
2026-04-16  9:16 ` [PATCH 28/32] fuse: remove fuse_mutex protection from fuse_dev_ioctl_sync_init() Miklos Szeredi
2026-04-16  9:16 ` [PATCH 29/32] fuse: change ring->fc to ring->chan Miklos Szeredi
2026-04-16  9:16 ` [PATCH 30/32] fuse: remove #include "fuse_i.h" from dev.c and dev_uring.c Miklos Szeredi
2026-04-16  9:16 ` [PATCH 31/32] fuse: alloc pqueue before installing fch in fuse_dev Miklos Szeredi
2026-04-22 19:30   ` Joanne Koong
2026-04-16  9:16 ` [PATCH 32/32] fuse: simplify fuse_dev_ioctl_clone() Miklos Szeredi

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=20260416091658.462783-1-mszeredi@redhat.com \
    --to=mszeredi@redhat.com \
    --cc=fuse-devel@lists.linux.dev \
    --cc=linux-fsdevel@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