linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amir Goldstein <amir73il@gmail.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: miklos@szeredi.hu, bernd@bsbernd.com, neal@gompa.dev,
	John@groves.net,  linux-fsdevel@vger.kernel.org,
	joannelkoong@gmail.com
Subject: Re: [PATCH 05/23] fuse: move the passthrough-specific code back to passthrough.c
Date: Thu, 21 Aug 2025 11:05:28 +0200	[thread overview]
Message-ID: <CAOQ4uxg_A-Zck33c61_yn+jiWRW8OjKO4QxJQJ31Tci0sxFpQA@mail.gmail.com> (raw)
In-Reply-To: <175573709222.17510.17568403217413241879.stgit@frogsfrogsfrogs>

On Thu, Aug 21, 2025 at 2:53 AM Darrick J. Wong <djwong@kernel.org> wrote:
>
> From: Darrick J. Wong <djwong@kernel.org>
>
> In preparation for iomap, move the passthrough-specific validation code
> back to passthrough.c and create a new Kconfig item for conditional
> compilation of backing.c.  In the next patch, iomap will share the
> backing structures.
>
> Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
> ---
>  fs/fuse/fuse_i.h      |   14 ++++++
>  fs/fuse/fuse_trace.h  |   35 ++++++++++++++++
>  fs/fuse/Kconfig       |    4 ++
>  fs/fuse/Makefile      |    3 +
>  fs/fuse/backing.c     |  106 +++++++++++++++++++++++++++++++++++++------------
>  fs/fuse/dev.c         |    4 +-
>  fs/fuse/inode.c       |    4 +-
>  fs/fuse/passthrough.c |   28 +++++++++++++
>  8 files changed, 165 insertions(+), 33 deletions(-)
>
>
> diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
> index 2be2cbdf060536..1762517a1b99c8 100644
> --- a/fs/fuse/fuse_i.h
> +++ b/fs/fuse/fuse_i.h
> @@ -958,7 +958,7 @@ struct fuse_conn {
>         /* New writepages go into this bucket */
>         struct fuse_sync_bucket __rcu *curr_bucket;
>
> -#ifdef CONFIG_FUSE_PASSTHROUGH
> +#ifdef CONFIG_FUSE_BACKING
>         /** IDR for backing files ids */
>         struct idr backing_files_map;
>  #endif
> @@ -1536,7 +1536,7 @@ void fuse_file_release(struct inode *inode, struct fuse_file *ff,
>                        unsigned int open_flags, fl_owner_t id, bool isdir);
>
>  /* backing.c */
> -#ifdef CONFIG_FUSE_PASSTHROUGH
> +#ifdef CONFIG_FUSE_BACKING
>  struct fuse_backing *fuse_backing_get(struct fuse_backing *fb);
>  void fuse_backing_put(struct fuse_backing *fb);
>  struct fuse_backing *fuse_backing_lookup(struct fuse_conn *fc, int backing_id);
> @@ -1596,6 +1596,16 @@ static inline struct file *fuse_file_passthrough(struct fuse_file *ff)
>  #endif
>  }
>
> +#ifdef CONFIG_FUSE_PASSTHROUGH
> +int fuse_passthrough_backing_open(struct fuse_conn *fc,
> +                                 struct fuse_backing *fb);
> +int fuse_passthrough_backing_close(struct fuse_conn *fc,
> +                                  struct fuse_backing *fb);
> +#else
> +# define fuse_passthrough_backing_open(...)    (-EOPNOTSUPP)
> +# define fuse_passthrough_backing_close(...)   (-EOPNOTSUPP)
> +#endif
> +
>  ssize_t fuse_passthrough_read_iter(struct kiocb *iocb, struct iov_iter *iter);
>  ssize_t fuse_passthrough_write_iter(struct kiocb *iocb, struct iov_iter *iter);
>  ssize_t fuse_passthrough_splice_read(struct file *in, loff_t *ppos,
> diff --git a/fs/fuse/fuse_trace.h b/fs/fuse/fuse_trace.h
> index 2389072b734636..660d9b5206a175 100644
> --- a/fs/fuse/fuse_trace.h
> +++ b/fs/fuse/fuse_trace.h
> @@ -174,6 +174,41 @@ TRACE_EVENT(fuse_request_end,
>                   __entry->unique, __entry->len, __entry->error)
>  );
>
> +#ifdef CONFIG_FUSE_BACKING
> +TRACE_EVENT(fuse_backing_class,
> +       TP_PROTO(const struct fuse_conn *fc, unsigned int idx,
> +                const struct fuse_backing *fb),
> +
> +       TP_ARGS(fc, idx, fb),
> +
> +       TP_STRUCT__entry(
> +               __field(dev_t,                  connection)
> +               __field(unsigned int,           idx)
> +               __field(unsigned long,          ino)
> +       ),
> +
> +       TP_fast_assign(
> +               struct inode *inode = file_inode(fb->file);
> +
> +               __entry->connection     =       fc->dev;
> +               __entry->idx            =       idx;
> +               __entry->ino            =       inode->i_ino;
> +       ),
> +
> +       TP_printk("connection %u idx %u ino 0x%lx",
> +                 __entry->connection,
> +                 __entry->idx,
> +                 __entry->ino)
> +);
> +#define DEFINE_FUSE_BACKING_EVENT(name)                \
> +DEFINE_EVENT(fuse_backing_class, name,         \
> +       TP_PROTO(const struct fuse_conn *fc, unsigned int idx, \
> +                const struct fuse_backing *fb), \
> +       TP_ARGS(fc, idx, fb))
> +DEFINE_FUSE_BACKING_EVENT(fuse_backing_open);
> +DEFINE_FUSE_BACKING_EVENT(fuse_backing_close);
> +#endif
> +
>  #if IS_ENABLED(CONFIG_FUSE_IOMAP)
>
>  /* tracepoint boilerplate so we don't have to keep doing this */
> diff --git a/fs/fuse/Kconfig b/fs/fuse/Kconfig
> index 6be74396ef5198..ebb9a2d76b532e 100644
> --- a/fs/fuse/Kconfig
> +++ b/fs/fuse/Kconfig
> @@ -59,12 +59,16 @@ config FUSE_PASSTHROUGH
>         default y
>         depends on FUSE_FS
>         select FS_STACK
> +       select FUSE_BACKING
>         help
>           This allows bypassing FUSE server by mapping specific FUSE operations
>           to be performed directly on a backing file.
>
>           If you want to allow passthrough operations, answer Y.
>
> +config FUSE_BACKING
> +       bool
> +
>  config FUSE_IOMAP
>         bool "FUSE file IO over iomap"
>         default y
> diff --git a/fs/fuse/Makefile b/fs/fuse/Makefile
> index c79f786d0c90c3..27be39317701d6 100644
> --- a/fs/fuse/Makefile
> +++ b/fs/fuse/Makefile
> @@ -14,7 +14,8 @@ fuse-y := trace.o     # put trace.o first so we see ftrace errors sooner
>  fuse-y += dev.o dir.o file.o inode.o control.o xattr.o acl.o readdir.o ioctl.o
>  fuse-y += iomode.o
>  fuse-$(CONFIG_FUSE_DAX) += dax.o
> -fuse-$(CONFIG_FUSE_PASSTHROUGH) += passthrough.o backing.o
> +fuse-$(CONFIG_FUSE_PASSTHROUGH) += passthrough.o
> +fuse-$(CONFIG_FUSE_BACKING) += backing.o
>  fuse-$(CONFIG_SYSCTL) += sysctl.o
>  fuse-$(CONFIG_FUSE_IO_URING) += dev_uring.o
>  fuse-$(CONFIG_FUSE_IOMAP) += file_iomap.o
> diff --git a/fs/fuse/backing.c b/fs/fuse/backing.c
> index ddb23b7400fc72..c128bed95a76b8 100644
> --- a/fs/fuse/backing.c
> +++ b/fs/fuse/backing.c
> @@ -6,6 +6,7 @@
>   */
>
>  #include "fuse_i.h"
> +#include "fuse_trace.h"
>
>  #include <linux/file.h>
>
> @@ -81,16 +82,14 @@ void fuse_backing_files_free(struct fuse_conn *fc)
>
>  int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map)
>  {
> -       struct file *file;
> -       struct super_block *backing_sb;
> +       struct file *file = NULL;
>         struct fuse_backing *fb = NULL;
> -       int res;
> +       int res, passthrough_res;
>
>         pr_debug("%s: fd=%d flags=0x%x\n", __func__, map->fd, map->flags);
>
> -       /* TODO: relax CAP_SYS_ADMIN once backing files are visible to lsof */
>         res = -EPERM;
> -       if (!fc->passthrough || !capable(CAP_SYS_ADMIN))
> +       if (!fc->passthrough)
>                 goto out;
>
>         res = -EINVAL;
> @@ -102,46 +101,68 @@ int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map)
>         if (!file)
>                 goto out;
>
> -       backing_sb = file_inode(file)->i_sb;
> -       res = -ELOOP;
> -       if (backing_sb->s_stack_depth >= fc->max_stack_depth)
> -               goto out_fput;
> -
>         fb = kmalloc(sizeof(struct fuse_backing), GFP_KERNEL);
>         res = -ENOMEM;
>         if (!fb)
> -               goto out_fput;
> +               goto out_file;
>
> +       /* fb now owns file */
>         fb->file = file;
> +       file = NULL;
>         fb->cred = prepare_creds();
>         refcount_set(&fb->count, 1);
>
> +       /*
> +        * Each _backing_open function should either:
> +        *
> +        * 1. Take a ref to fb if it wants the file and return 0.
> +        * 2. Return 0 without taking a ref if the backing file isn't needed.
> +        * 3. Return an errno explaining why it couldn't attach.
> +        *
> +        * If at least one subsystem bumps the reference count to open it,
> +        * we'll install it into the index and return the index.  If nobody
> +        * opens the file, the error code will be passed up.  EPERM is the
> +        * default.
> +        */
> +       passthrough_res = fuse_passthrough_backing_open(fc, fb);
> +
> +       if (refcount_read(&fb->count) < 2) {
> +               if (passthrough_res)
> +                       res = passthrough_res;
> +               if (!res)
> +                       res = -EPERM;
> +               goto out_fb;
> +       }
> +
>         res = fuse_backing_id_alloc(fc, fb);
> -       if (res < 0) {
> -               fuse_backing_free(fb);
> -               fb = NULL;
> -       }
> +       if (res < 0)
> +               goto out_fb;
> +
> +       trace_fuse_backing_open(fc, res, fb);
>
> -out:
>         pr_debug("%s: fb=0x%p, ret=%i\n", __func__, fb, res);
> -
> +       fuse_backing_put(fb);
>         return res;
>
> -out_fput:
> -       fput(file);
> -       goto out;
> +out_fb:
> +       fuse_backing_free(fb);
> +out_file:
> +       if (file)
> +               fput(file);
> +out:
> +       pr_debug("%s: ret=%i\n", __func__, res);
> +       return res;
>  }
>
>  int fuse_backing_close(struct fuse_conn *fc, int backing_id)
>  {
> -       struct fuse_backing *fb = NULL;
> -       int err;
> +       struct fuse_backing *fb = NULL, *test_fb;
> +       int err, passthrough_err;
>
>         pr_debug("%s: backing_id=%d\n", __func__, backing_id);
>
> -       /* TODO: relax CAP_SYS_ADMIN once backing files are visible to lsof */
>         err = -EPERM;
> -       if (!fc->passthrough || !capable(CAP_SYS_ADMIN))
> +       if (!fc->passthrough)
>                 goto out;
>
>         err = -EINVAL;
> @@ -149,12 +170,45 @@ int fuse_backing_close(struct fuse_conn *fc, int backing_id)
>                 goto out;
>
>         err = -ENOENT;
> -       fb = fuse_backing_id_remove(fc, backing_id);
> +       fb = fuse_backing_lookup(fc, backing_id);
>         if (!fb)
>                 goto out;
>
> +       /*
> +        * Each _backing_close function should either:
> +        *
> +        * 1. Release the ref that it took in _backing_open and return 0.
> +        * 2. Don't release the ref if the backing file is busy, and return 0.
> +        * 2. Return an errno explaining why it couldn't detach.
> +        *
> +        * If there are no more active references to the backing file, it will
> +        * be closed and removed from the index.  If there are still active
> +        * references to the backing file other than the one we just took, the

That does not look right.
The fuse_backing object can often outliive the backing_id mapping
1. fuse server attached backing fd to backing id 1
2. fuse server opens a file with passthrough to backing id 1
3. fuse inode holds a refcount to the fuse_backing object
4. fuse server closes backing id 1 mapping
5. fuse server closes file, drops last reference to fuse_backing object

IOW, fb->count is not about being in the index.
With your code the fuse server call in #4 above will end up leaving the
fuse_backing object in the index and after #5 it will remain a dangling
object in the index.

TBH, I don't understand why we need any of the complexity
of two subsystems claiming the same fuse_backing object for two
different purposes.

Also, I think that an explicit statement from the server about the
purpose of the backing file is due (like your commit message implies)
This could be easily done with the backing open flags member:

diff --git a/fs/fuse/backing.c b/fs/fuse/backing.c
index c63990254649c..e5a675fca7505 100644
--- a/fs/fuse/backing.c
+++ b/fs/fuse/backing.c
@@ -96,7 +96,7 @@ int fuse_backing_open(struct fuse_conn *fc, struct
fuse_backing_map *map)
                goto out;

        res = -EINVAL;
-       if (map->flags || map->padding)
+       if (map->flags & ~FUSE_BACKING_VALID_FLAGS || map->padding)
                goto out;

        file = fget_raw(map->fd);
@@ -127,8 +127,10 @@ int fuse_backing_open(struct fuse_conn *fc,
struct fuse_backing_map *map)
         * opens the file, the error code will be passed up.  EPERM is the
         * default.
         */
-       passthrough_res = fuse_passthrough_backing_open(fc, fb);
-       iomap_res = fuse_iomap_backing_open(fc, fb);
+       if (map->flags & FUSE_BACKING_IOMAP)
+               iomap_res = fuse_iomap_backing_open(fc, fb);
+       else
+               passthrough_res = fuse_passthrough_backing_open(fc, fb);

        if (refcount_read(&fb->count) < 2) {
                if (passthrough_res)
@@ -192,8 +194,10 @@ int fuse_backing_close(struct fuse_conn *fc, int
backing_id)
         * references to the backing file other than the one we just took, the
         * error code will be passed up.  EBUSY is the default.
         */
-       passthrough_err = fuse_passthrough_backing_close(fc, fb);
-       iomap_err = fuse_iomap_backing_close(fc, fb);
+       if (fb->bdev)
+               iomap_err = fuse_iomap_backing_close(fc, fb);
+       else
+               passthrough_err = fuse_passthrough_backing_close(fc, fb);

        if (refcount_read(&fb->count) > 1) {
                if (passthrough_err)
diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h
index 70b5530e587d4..ee81903ad2f98 100644
--- a/include/uapi/linux/fuse.h
+++ b/include/uapi/linux/fuse.h
@@ -1148,6 +1148,10 @@ struct fuse_notify_retrieve_in {
        uint64_t        dummy4;
 };

+/* basic file I/O functionality through iomap */
+#define FUSE_BACKING_IOMAP             (1 << 0)
+#define FUSE_BACKING_VALID_FLAGS       (FUSE_BACKING_IOMAP)
+
 struct fuse_backing_map {
        int32_t         fd;
        uint32_t        flags;


> +        * error code will be passed up.  EBUSY is the default.
> +        */
> +       passthrough_err = fuse_passthrough_backing_close(fc, fb);
> +
> +       if (refcount_read(&fb->count) > 1) {
> +               if (passthrough_err)
> +                       err = passthrough_err;
> +               if (!err)
> +                       err = -EBUSY;
> +               goto out_fb;
> +       }
> +
> +       trace_fuse_backing_close(fc, backing_id, fb);
> +
> +       err = -ENOENT;
> +       test_fb = fuse_backing_id_remove(fc, backing_id);
> +       if (!test_fb)
> +               goto out_fb;
> +
> +       WARN_ON(fb != test_fb);
> +       pr_debug("%s: fb=0x%p, err=0\n", __func__, fb);
> +       fuse_backing_put(fb);
> +       return 0;
> +out_fb:
>         fuse_backing_put(fb);
> -       err = 0;
>  out:
>         pr_debug("%s: fb=0x%p, err=%i\n", __func__, fb, err);
>
> diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
> index dbde17fff0cda9..31d9f006836ac1 100644
> --- a/fs/fuse/dev.c
> +++ b/fs/fuse/dev.c
> @@ -2623,7 +2623,7 @@ static long fuse_dev_ioctl_backing_open(struct file *file,
>         if (!fud)
>                 return -EPERM;
>
> -       if (!IS_ENABLED(CONFIG_FUSE_PASSTHROUGH))
> +       if (!IS_ENABLED(CONFIG_FUSE_BACKING))
>                 return -EOPNOTSUPP;
>
>         if (copy_from_user(&map, argp, sizeof(map)))
> @@ -2640,7 +2640,7 @@ static long fuse_dev_ioctl_backing_close(struct file *file, __u32 __user *argp)
>         if (!fud)
>                 return -EPERM;
>
> -       if (!IS_ENABLED(CONFIG_FUSE_PASSTHROUGH))
> +       if (!IS_ENABLED(CONFIG_FUSE_BACKING))
>                 return -EOPNOTSUPP;
>
>         if (get_user(backing_id, argp))
> diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
> index 9448a11c828fef..1f3f91981410aa 100644
> --- a/fs/fuse/inode.c
> +++ b/fs/fuse/inode.c
> @@ -993,7 +993,7 @@ void fuse_conn_init(struct fuse_conn *fc, struct fuse_mount *fm,
>         fc->name_max = FUSE_NAME_LOW_MAX;
>         fc->timeout.req_timeout = 0;
>
> -       if (IS_ENABLED(CONFIG_FUSE_PASSTHROUGH))
> +       if (IS_ENABLED(CONFIG_FUSE_BACKING))
>                 fuse_backing_files_init(fc);
>
>         INIT_LIST_HEAD(&fc->mounts);
> @@ -1030,7 +1030,7 @@ void fuse_conn_put(struct fuse_conn *fc)
>                         WARN_ON(atomic_read(&bucket->count) != 1);
>                         kfree(bucket);
>                 }
> -               if (IS_ENABLED(CONFIG_FUSE_PASSTHROUGH))
> +               if (IS_ENABLED(CONFIG_FUSE_BACKING))
>                         fuse_backing_files_free(fc);
>                 call_rcu(&fc->rcu, delayed_release);
>         }
> diff --git a/fs/fuse/passthrough.c b/fs/fuse/passthrough.c
> index e0b8d885bc81f3..dfc61cc4bd21af 100644
> --- a/fs/fuse/passthrough.c
> +++ b/fs/fuse/passthrough.c
> @@ -197,3 +197,31 @@ void fuse_passthrough_release(struct fuse_file *ff, struct fuse_backing *fb)
>         put_cred(ff->cred);
>         ff->cred = NULL;
>  }
> +
> +int fuse_passthrough_backing_open(struct fuse_conn *fc,
> +                                 struct fuse_backing *fb)
> +{
> +       struct super_block *backing_sb;
> +
> +       /* TODO: relax CAP_SYS_ADMIN once backing files are visible to lsof */
> +       if (!capable(CAP_SYS_ADMIN))
> +               return -EPERM;

This limitation is not specific to fuse passthrough.
While the fuse passthrough use case is likely to request many fuse
backing files,
the limitation is here to protect from malicious actors and the same ioctl used
by the iomap fuse server can just as well open many "lsof invisible" files,
so the limitation should be in the generic function.

> +
> +       backing_sb = file_inode(fb->file)->i_sb;
> +       if (backing_sb->s_stack_depth >= fc->max_stack_depth)
> +               return -ELOOP;
> +
> +       fuse_backing_get(fb);
> +       return 0;
> +}
> +
> +int fuse_passthrough_backing_close(struct fuse_conn *fc,
> +                                  struct fuse_backing *fb)
> +{
> +       /* TODO: relax CAP_SYS_ADMIN once backing files are visible to lsof */
> +       if (!capable(CAP_SYS_ADMIN))
> +               return -EPERM;
> +

Probably this comment in upstream is not very accurate because there is no
harm done in closing the backing files, but sure for symmetry.
Same comment as above through, unless there are reasons to relax
CAP_SYS_ADMIN for file iomap, would leave this in the genetic code.

And then there is not much justification left for the close helpers IMO,
especially given that the implementation wrt removing from index is
incorrect, I would keep it simple:

@@ -175,11 +177,19 @@ int fuse_backing_close(struct fuse_conn *fc, int
backing_id)
        if (backing_id <= 0)
                goto out;

-       err = -ENOENT;
-       fb = fuse_backing_lookup(fc, backing_id);
-       if (!fb)
+       err = -EPERM;
+       if (!capable(CAP_SYS_ADMIN))
                goto out;

+       err = -EBUSY;
+       if (fb->bdev)
+               goto out;
+
+       fb = fuse_backing_id_remove(fc, backing_id);
+       if (!fb)
+               err = -ENOENT;
+       goto out_fb;
+

Thanks,
Amir.

  reply	other threads:[~2025-08-21  9:05 UTC|newest]

Thread overview: 207+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-21  0:37 [RFC v4] fuse: use fs-iomap for better performance so we can containerize ext4 Darrick J. Wong
2025-08-21  0:47 ` [PATCHSET RFC v4 1/4] fuse: general bug fixes Darrick J. Wong
2025-08-21  0:50   ` [PATCH 1/7] fuse: fix livelock in synchronous file put from fuseblk workers Darrick J. Wong
2025-09-03 15:20     ` Miklos Szeredi
2025-09-03 15:23       ` Darrick J. Wong
2025-08-21  0:51   ` [PATCH 2/7] fuse: flush pending fuse events before aborting the connection Darrick J. Wong
2025-09-03 15:45     ` Miklos Szeredi
2025-09-03 17:49       ` Darrick J. Wong
2025-09-04 10:54         ` Miklos Szeredi
2025-08-21  0:51   ` [PATCH 3/7] fuse: capture the unique id of fuse commands being sent Darrick J. Wong
2025-08-22  0:15     ` Joanne Koong
2025-08-26 18:52       ` Darrick J. Wong
2025-09-03 15:48         ` Miklos Szeredi
2025-09-03 15:54           ` Darrick J. Wong
2025-09-03 18:47             ` Darrick J. Wong
2025-09-03 23:05               ` Joanne Koong
2025-09-04  0:23                 ` Darrick J. Wong
2025-09-03 15:51         ` Bernd Schubert
2025-08-21  0:51   ` [PATCH 4/7] fuse: implement file attributes mask for statx Darrick J. Wong
2025-08-22  0:01     ` Joanne Koong
2025-08-26 18:56       ` Darrick J. Wong
2025-08-29  6:24     ` Miklos Szeredi
2025-08-29 15:39       ` Darrick J. Wong
2025-09-02  9:41         ` Miklos Szeredi
2025-09-02 20:57           ` Darrick J. Wong
2025-09-03  9:55             ` Miklos Szeredi
2025-09-03 15:49               ` Darrick J. Wong
2025-09-04 11:26                 ` Miklos Szeredi
2025-09-05  1:28                   ` Darrick J. Wong
2025-08-21  0:51   ` [PATCH 5/7] fuse: update file mode when updating acls Darrick J. Wong
2025-09-03 16:01     ` Miklos Szeredi
2025-09-03 17:51       ` Darrick J. Wong
2025-09-04 10:49         ` Miklos Szeredi
2025-09-05  1:29           ` Darrick J. Wong
2025-08-21  0:52   ` [PATCH 6/7] fuse: propagate default and file acls on creation Darrick J. Wong
2025-09-03 16:15     ` Miklos Szeredi
2025-09-03 16:27       ` Darrick J. Wong
2025-08-21  0:52   ` [PATCH 7/7] fuse: enable FUSE_SYNCFS for all servers Darrick J. Wong
2025-08-21 22:18     ` Joanne Koong
2025-08-21 22:28       ` Darrick J. Wong
2025-08-21 22:54         ` Bernd Schubert
2025-08-21 23:31           ` Joanne Koong
2025-08-22 11:32           ` Shachar Sharon
2025-08-22 17:21             ` Joanne Koong
2025-08-26 19:31               ` Darrick J. Wong
2025-08-26 22:07                 ` Joanne Koong
2025-08-27 15:18                   ` Miklos Szeredi
2025-08-27 19:12                     ` Darrick J. Wong
2025-08-28 14:08                       ` Miklos Szeredi
2025-08-28 14:23                         ` Miklos Szeredi
2025-08-28 15:01                         ` Darrick J. Wong
2025-08-28 15:52                           ` Joanne Koong
2025-08-21  0:47 ` [PATCHSET RFC v4 2/4] fuse: allow servers to use iomap for better file IO performance Darrick J. Wong
2025-08-21  0:52   ` [PATCH 01/23] fuse: move CREATE_TRACE_POINTS to a separate file Darrick J. Wong
2025-08-21  0:53   ` [PATCH 02/23] fuse: implement the basic iomap mechanisms Darrick J. Wong
2025-09-04 14:04     ` Miklos Szeredi
2025-09-04 14:45       ` Darrick J. Wong
2025-09-04 15:17         ` Miklos Szeredi
2025-09-05  1:50           ` Darrick J. Wong
2025-08-21  0:53   ` [PATCH 03/23] fuse: make debugging configurable at runtime Darrick J. Wong
2025-08-21  0:53   ` [PATCH 04/23] fuse: move the backing file idr and code into a new source file Darrick J. Wong
2025-08-21  7:21     ` Amir Goldstein
2025-08-21  7:42       ` Amir Goldstein
2025-08-21 16:15         ` Darrick J. Wong
2025-08-21  0:53   ` [PATCH 05/23] fuse: move the passthrough-specific code back to passthrough.c Darrick J. Wong
2025-08-21  9:05     ` Amir Goldstein [this message]
2025-08-21 16:13       ` Darrick J. Wong
2025-08-21  0:54   ` [PATCH 06/23] fuse: add an ioctl to add new iomap devices Darrick J. Wong
2025-08-21  8:09     ` Amir Goldstein
2025-08-21 16:15       ` Darrick J. Wong
2025-08-21  0:54   ` [PATCH 07/23] fuse: flush events and send FUSE_SYNCFS and FUSE_DESTROY on unmount Darrick J. Wong
2025-08-21  0:54   ` [PATCH 08/23] fuse: implement basic iomap reporting such as FIEMAP and SEEK_{DATA,HOLE} Darrick J. Wong
2025-08-21  0:54   ` [PATCH 09/23] fuse: implement direct IO with iomap Darrick J. Wong
2025-08-21  0:55   ` [PATCH 10/23] fuse: implement buffered " Darrick J. Wong
2025-08-21  0:55   ` [PATCH 11/23] fuse: enable caching of timestamps Darrick J. Wong
2025-08-21  0:55   ` [PATCH 12/23] fuse: implement large folios for iomap pagecache files Darrick J. Wong
2025-08-21  0:55   ` [PATCH 13/23] fuse: use an unrestricted backing device with iomap pagecache io Darrick J. Wong
2025-08-21  0:56   ` [PATCH 14/23] fuse: advertise support for iomap Darrick J. Wong
2025-08-21  0:56   ` [PATCH 15/23] fuse: query filesystem geometry when using iomap Darrick J. Wong
2025-08-21  0:56   ` [PATCH 16/23] fuse: implement fadvise for iomap files Darrick J. Wong
2025-08-21  0:56   ` [PATCH 17/23] fuse: make the root nodeid dynamic Darrick J. Wong
2025-08-21  0:57   ` [PATCH 18/23] fuse: allow setting of root nodeid Darrick J. Wong
2025-08-21  0:57   ` [PATCH 19/23] fuse: invalidate ranges of block devices being used for iomap Darrick J. Wong
2025-08-21  0:57   ` [PATCH 20/23] fuse: implement inline data file IO via iomap Darrick J. Wong
2025-08-21  0:57   ` [PATCH 21/23] fuse: allow more statx fields Darrick J. Wong
2025-08-21  0:58   ` [PATCH 22/23] fuse: support atomic writes with iomap Darrick J. Wong
2025-08-21  0:58   ` [PATCH 23/23] fuse: enable iomap Darrick J. Wong
2025-08-21  0:47 ` [PATCHSET RFC v4 3/4] fuse: cache iomap mappings for even better file IO performance Darrick J. Wong
2025-08-21  0:58   ` [PATCH 1/4] fuse: cache iomaps Darrick J. Wong
2025-08-21  0:59   ` [PATCH 2/4] fuse: use the iomap cache for iomap_begin Darrick J. Wong
2025-08-21  0:59   ` [PATCH 3/4] fuse: invalidate iomap cache after file updates Darrick J. Wong
2025-08-21  0:59   ` [PATCH 4/4] fuse: enable iomap cache management Darrick J. Wong
2025-08-21  0:48 ` [PATCHSET RFC v4 4/4] fuse: handle timestamps and ACLs correctly when iomap is enabled Darrick J. Wong
2025-08-21  0:59   ` [PATCH 1/6] fuse: force a ctime update after a fileattr_set call when in iomap mode Darrick J. Wong
2025-08-21  1:00   ` [PATCH 2/6] fuse: synchronize inode->i_flags after fileattr_[gs]et Darrick J. Wong
2025-08-21  1:00   ` [PATCH 3/6] fuse: cache atime when in iomap mode Darrick J. Wong
2025-08-21  1:00   ` [PATCH 4/6] fuse: let the kernel handle KILL_SUID/KILL_SGID for iomap filesystems Darrick J. Wong
2025-08-21  1:00   ` [PATCH 5/6] fuse: update ctime when updating acls on an iomap inode Darrick J. Wong
2025-08-21  1:01   ` [PATCH 6/6] fuse: always cache ACLs when using iomap Darrick J. Wong
2025-08-21  0:48 ` [PATCHSET RFC v4 1/4] libfuse: general bug fixes Darrick J. Wong
2025-08-21  1:01   ` [PATCH 1/1] libfuse: don't put HAVE_STATX in a public header Darrick J. Wong
2025-08-21 21:39     ` Bernd Schubert
2025-08-21 22:27       ` Darrick J. Wong
2025-08-22  0:33     ` Joanne Koong
2025-08-22 12:54       ` Bernd Schubert
2025-08-26 19:43         ` Darrick J. Wong
2025-08-21  0:48 ` [PATCHSET RFC v4 2/4] libfuse: allow servers to use iomap for better file IO performance Darrick J. Wong
2025-08-21  1:01   ` [PATCH 01/21] libfuse: bump kernel and library ABI versions Darrick J. Wong
2025-08-21  1:01   ` [PATCH 02/21] libfuse: add kernel gates for FUSE_IOMAP Darrick J. Wong
2025-08-21  1:02   ` [PATCH 03/21] libfuse: add fuse commands for iomap_begin and end Darrick J. Wong
2025-08-21  1:02   ` [PATCH 04/21] libfuse: add upper level iomap commands Darrick J. Wong
2025-08-21  1:02   ` [PATCH 05/21] libfuse: add a lowlevel notification to add a new device to iomap Darrick J. Wong
2025-08-21  1:02   ` [PATCH 06/21] libfuse: add upper-level iomap add device function Darrick J. Wong
2025-08-21  1:03   ` [PATCH 07/21] libfuse: add iomap ioend low level handler Darrick J. Wong
2025-08-21  1:03   ` [PATCH 08/21] libfuse: add upper level iomap ioend commands Darrick J. Wong
2025-08-21  1:03   ` [PATCH 09/21] libfuse: add a reply function to send FUSE_ATTR_* to the kernel Darrick J. Wong
2025-08-21  1:03   ` [PATCH 10/21] libfuse: connect high level fuse library to fuse_reply_attr_iflags Darrick J. Wong
2025-08-21  1:04   ` [PATCH 11/21] libfuse: support direct I/O through iomap Darrick J. Wong
2025-08-21  1:04   ` [PATCH 12/21] libfuse: support buffered " Darrick J. Wong
2025-08-21  1:04   ` [PATCH 13/21] libfuse: don't allow hardlinking of iomap files in the upper level fuse library Darrick J. Wong
2025-08-21  1:05   ` [PATCH 14/21] libfuse: allow discovery of the kernel's iomap capabilities Darrick J. Wong
2025-08-21  1:05   ` [PATCH 15/21] libfuse: add lower level iomap_config implementation Darrick J. Wong
2025-08-21  1:05   ` [PATCH 16/21] libfuse: add upper " Darrick J. Wong
2025-08-21  1:05   ` [PATCH 17/21] libfuse: allow root_nodeid mount option Darrick J. Wong
2025-08-21  1:06   ` [PATCH 18/21] libfuse: add low level code to invalidate iomap block device ranges Darrick J. Wong
2025-08-21  1:06   ` [PATCH 19/21] libfuse: add upper-level API to invalidate parts of an iomap block device Darrick J. Wong
2025-08-21  1:06   ` [PATCH 20/21] libfuse: add strictatime/lazytime mount options Darrick J. Wong
2025-08-21  1:06   ` [PATCH 21/21] libfuse: add atomic write support Darrick J. Wong
2025-08-21  0:48 ` [PATCHSET RFC v4 3/4] libfuse: cache iomap mappings for even better file IO performance Darrick J. Wong
2025-08-21  1:07   ` [PATCH 1/2] libfuse: enable iomap cache management for lowlevel fuse Darrick J. Wong
2025-08-21  1:07   ` [PATCH 2/2] libfuse: add upper-level iomap cache management Darrick J. Wong
2025-08-21  0:49 ` [PATCHSET RFC v4 4/4] libfuse: implement syncfs Darrick J. Wong
2025-08-21  1:07   ` [PATCH 1/2] libfuse: wire up FUSE_SYNCFS to the low level library Darrick J. Wong
2025-08-21  1:07   ` [PATCH 2/2] libfuse: add syncfs support to the upper library Darrick J. Wong
2025-08-21 21:41   ` [PATCHSET RFC v4 4/4] libfuse: implement syncfs Bernd Schubert
2025-08-21 22:29     ` Darrick J. Wong
2025-08-21  0:49 ` [PATCHSET RFC v4 1/6] fuse4fs: fork a low level fuse server Darrick J. Wong
2025-08-21  1:08   ` [PATCH 01/20] fuse2fs: port fuse2fs to lowlevel libfuse API Darrick J. Wong
2025-08-21  1:08   ` [PATCH 02/20] fuse4fs: drop fuse 2.x support code Darrick J. Wong
2025-08-21  1:08   ` [PATCH 03/20] fuse4fs: namespace some helpers Darrick J. Wong
2025-08-21  1:08   ` [PATCH 04/20] fuse4fs: convert to low level API Darrick J. Wong
2025-08-21  1:09   ` [PATCH 05/20] libsupport: port the kernel list.h to libsupport Darrick J. Wong
2025-08-21  1:09   ` [PATCH 06/20] libsupport: add a cache Darrick J. Wong
2025-08-21  1:09   ` [PATCH 07/20] cache: disable debugging Darrick J. Wong
2025-08-21  1:09   ` [PATCH 08/20] cache: use modern list iterator macros Darrick J. Wong
2025-08-21  1:10   ` [PATCH 09/20] cache: embed struct cache in the owner Darrick J. Wong
2025-08-21  1:10   ` [PATCH 10/20] cache: pass cache pointer to callbacks Darrick J. Wong
2025-08-21  1:10   ` [PATCH 11/20] cache: pass a private data pointer through cache_walk Darrick J. Wong
2025-08-21  1:11   ` [PATCH 12/20] cache: add a helper to grab a new refcount for a cache_node Darrick J. Wong
2025-08-21  1:11   ` [PATCH 13/20] cache: return results of a cache flush Darrick J. Wong
2025-08-21  1:11   ` [PATCH 14/20] cache: add a "get only if incore" flag to cache_node_get Darrick J. Wong
2025-08-21  1:11   ` [PATCH 15/20] cache: support gradual expansion Darrick J. Wong
2025-08-21  1:12   ` [PATCH 16/20] cache: implement automatic shrinking Darrick J. Wong
2025-08-21  1:12   ` [PATCH 17/20] fuse4fs: add cache to track open files Darrick J. Wong
2025-08-21  1:12   ` [PATCH 18/20] fuse4fs: use the orphaned inode list Darrick J. Wong
2025-08-21  1:12   ` [PATCH 19/20] fuse4fs: implement FUSE_TMPFILE Darrick J. Wong
2025-08-21  1:13   ` [PATCH 20/20] fuse4fs: create incore reverse orphan list Darrick J. Wong
2025-08-21  0:49 ` [PATCHSET RFC v4 2/6] libext2fs: refactoring for fuse2fs iomap support Darrick J. Wong
2025-08-21  1:13   ` [PATCH 01/10] libext2fs: make it possible to extract the fd from an IO manager Darrick J. Wong
2025-08-21  1:13   ` [PATCH 02/10] libext2fs: always fsync the device when flushing the cache Darrick J. Wong
2025-08-21  1:13   ` [PATCH 03/10] libext2fs: always fsync the device when closing the unix IO manager Darrick J. Wong
2025-08-21  1:14   ` [PATCH 04/10] libext2fs: only fsync the unix fd if we wrote to the device Darrick J. Wong
2025-08-21  1:14   ` [PATCH 05/10] libext2fs: invalidate cached blocks when freeing them Darrick J. Wong
2025-08-21  1:14   ` [PATCH 06/10] libext2fs: only flush affected blocks in unix_write_byte Darrick J. Wong
2025-08-21  1:14   ` [PATCH 07/10] libext2fs: allow unix_write_byte when the write would be aligned Darrick J. Wong
2025-08-21  1:15   ` [PATCH 08/10] libext2fs: allow clients to ask to write full superblocks Darrick J. Wong
2025-08-21  1:15   ` [PATCH 09/10] libext2fs: allow callers to disallow I/O to file data blocks Darrick J. Wong
2025-08-21  1:15   ` [PATCH 10/10] libext2fs: add posix advisory locking to the unix IO manager Darrick J. Wong
2025-08-21  0:49 ` [PATCHSET RFC v4 3/6] fuse2fs: use fuse iomap data paths for better file I/O performance Darrick J. Wong
2025-08-21  1:15   ` [PATCH 01/19] fuse2fs: implement bare minimum iomap for file mapping reporting Darrick J. Wong
2025-08-21  1:16   ` [PATCH 02/19] fuse2fs: add iomap= mount option Darrick J. Wong
2025-08-21  1:16   ` [PATCH 03/19] fuse2fs: implement iomap configuration Darrick J. Wong
2025-08-21  1:16   ` [PATCH 04/19] fuse2fs: register block devices for use with iomap Darrick J. Wong
2025-08-21  1:17   ` [PATCH 05/19] fuse2fs: implement directio file reads Darrick J. Wong
2025-08-21  1:17   ` [PATCH 06/19] fuse2fs: add extent dump function for debugging Darrick J. Wong
2025-08-21  1:17   ` [PATCH 07/19] fuse2fs: implement direct write support Darrick J. Wong
2025-08-21  1:17   ` [PATCH 08/19] fuse2fs: turn on iomap for pagecache IO Darrick J. Wong
2025-08-21  1:18   ` [PATCH 09/19] fuse2fs: don't zero bytes in punch hole Darrick J. Wong
2025-08-21  1:18   ` [PATCH 10/19] fuse2fs: don't do file data block IO when iomap is enabled Darrick J. Wong
2025-08-21  1:18   ` [PATCH 11/19] fuse2fs: avoid fuseblk mode if fuse-iomap support is likely Darrick J. Wong
2025-08-21  1:18   ` [PATCH 12/19] fuse2fs: enable file IO to inline data files Darrick J. Wong
2025-08-21  1:19   ` [PATCH 13/19] fuse2fs: set iomap-related inode flags Darrick J. Wong
2025-08-21  1:19   ` [PATCH 14/19] fuse2fs: add strictatime/lazytime mount options Darrick J. Wong
2025-08-21  1:19   ` [PATCH 15/19] fuse2fs: configure block device block size Darrick J. Wong
2025-08-21  1:19   ` [PATCH 16/19] fuse4fs: don't use inode number translation when possible Darrick J. Wong
2025-08-21  1:20   ` [PATCH 17/19] fuse4fs: separate invalidation Darrick J. Wong
2025-08-21  1:20   ` [PATCH 18/19] fuse2fs: implement statx Darrick J. Wong
2025-08-21  1:20   ` [PATCH 19/19] fuse2fs: enable atomic writes Darrick J. Wong
2025-08-21  0:50 ` [PATCHSET RFC v4 4/6] fuse2fs: use fuse iomap data paths for better file I/O performance Darrick J. Wong
2025-08-21  1:20   ` [PATCH 1/2] fuse2fs: enable caching of iomaps Darrick J. Wong
2025-08-21  1:21   ` [PATCH 2/2] fuse2fs: be smarter about caching iomaps Darrick J. Wong
2025-08-21  0:50 ` [PATCHSET RFC v4 5/6] fuse2fs: handle timestamps and ACLs correctly when iomap is enabled Darrick J. Wong
2025-08-21  1:21   ` [PATCH 1/8] fuse2fs: skip permission checking on utimens " Darrick J. Wong
2025-08-21  1:21   ` [PATCH 2/8] fuse2fs: let the kernel tell us about acl/mode updates Darrick J. Wong
2025-08-21  1:21   ` [PATCH 3/8] fuse2fs: better debugging for file mode updates Darrick J. Wong
2025-08-21  1:22   ` [PATCH 4/8] fuse2fs: debug timestamp updates Darrick J. Wong
2025-08-21  1:22   ` [PATCH 5/8] fuse2fs: use coarse timestamps for iomap mode Darrick J. Wong
2025-08-21  1:22   ` [PATCH 6/8] fuse2fs: add tracing for retrieving timestamps Darrick J. Wong
2025-08-21  1:23   ` [PATCH 7/8] fuse2fs: enable syncfs Darrick J. Wong
2025-08-21  1:23   ` [PATCH 8/8] fuse2fs: skip the gdt write in op_destroy if syncfs is working Darrick J. Wong
2025-08-21  0:50 ` [PATCHSET RFC v4 6/6] fuse2fs: improve block and inode caching Darrick J. Wong
2025-08-21  1:23   ` [PATCH 1/6] libsupport: add caching IO manager Darrick J. Wong
2025-08-21  1:23   ` [PATCH 2/6] iocache: add the actual buffer cache Darrick J. Wong
2025-08-21  1:24   ` [PATCH 3/6] iocache: bump buffer mru priority every 50 accesses Darrick J. Wong
2025-08-21  1:24   ` [PATCH 4/6] fuse2fs: enable caching IO manager Darrick J. Wong
2025-08-21  1:24   ` [PATCH 5/6] fuse2fs: increase inode cache size Darrick J. Wong
2025-08-21  1:24   ` [PATCH 6/6] libext2fs: improve caching for inodes Darrick J. Wong

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=CAOQ4uxg_A-Zck33c61_yn+jiWRW8OjKO4QxJQJ31Tci0sxFpQA@mail.gmail.com \
    --to=amir73il@gmail.com \
    --cc=John@groves.net \
    --cc=bernd@bsbernd.com \
    --cc=djwong@kernel.org \
    --cc=joannelkoong@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=neal@gompa.dev \
    /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).