fuse: improve transport and fs layer separation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest32 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/32 | fuse: move request timeout code to a new source filefs/ fs/ fs/ +5 more | +173 | 0 replies | |
| 2/32 | fuse: add struct fuse_chanfs/ fs/ fs/ +4 more | +50 | 0 replies | |
| 3/32 | fuse: move fuse_iqueue to fuse_chanfs/ fs/ fs/ +7 more | +146 | 0 replies | |
| 4/32 | fuse: move fuse_dev and fuse_pqueue to dev.cfs/ fs/ fs/ +2 more | +144 | 0 replies | |
| 5/32 | fuse: move 'devices' member from fuse_conn to fuse_chanfs/ fs/ fs/ +2 more | +17 | 0 replies | |
| 6/32 | fuse: move background queuing related members to fuse_chanfs/ fs/ fs/ +7 more | +73 | 2 replies | |
| 7/32 | fuse: move request blocking related members to fuse_chanfs/ fs/ fs/ +5 more | +71 | 0 replies | |
| 8/32 | fuse: move io_uring related members to fuse_chanfs/ fs/ fs/ +3 more | +26 | 0 replies | |
| 9/32 | fuse: move interrupt related members to fuse_chanfs/ fs/ fs/ | +5 | 0 replies | |
| 10/32 | fuse: split off fch->lock from fc->lockfs/ fs/ fs/ +2 more | +40 | 0 replies | |
| 11/32 | fuse: add back pointer from fuse_chan to fuse_connfs/ fs/ | +4 | 0 replies | |
| 12/32 | fuse: move request timeout to fuse_chanfs/ fs/ fs/ +5 more | +55 | 0 replies | |
| 13/32 | fuse: move struct fuse_req and related to fuse_dev_i.hfs/ fs/ | +90 | 0 replies | |
| 14/32 | fuse: don't access transport layer structs directly from the fs layerfs/ fs/ fs/ +5 more | +124 | 0 replies | |
| 15/32 | fuse: move forget related struct and helpersfs/ fs/ fs/ +3 more | +29 | 0 replies | |
| 16/32 | fuse: move fuse_dev_waitq to dev.cfs/ fs/ fs/ | +5 | 0 replies | |
| 17/32 | fuse: remove #include "fuse_i.h" from "dev_uring_i.h"fs/ fs/ fs/ | +17 | 0 replies | |
| 18/32 | fuse: remove #include "fuse_i.h" from "req_timeout.c"fs/ fs/ fs/ | +3 | 0 replies | |
| 19/32 | fuse: abort related layering cleanupfs/ fs/ fs/ +6 more | +61 | 0 replies | |
| 20/32 | fuse: split off fuse_args and related definitions into a separate headerfs/ fs/ | +66 | 2 replies | |
| 21/32 | fuse: remove fm arg of args->end callbackfs/ fs/ fs/ +1 more | +22 | 0 replies | |
| 22/32 | fuse: change req->fm to req->chanfs/ fs/ fs/ +1 more | +69 | 0 replies | |
| 23/32 | fuse: split out filesystem part of request sendingfs/ fs/ fs/ +2 more | +129 | 0 replies | |
| 24/32 | fuse: change fud->fc to fud->chanfs/ fs/ fs/ +4 more | +92 | 0 replies | |
| 25/32 | fuse: create poll.cfs/ fs/ fs/ +2 more | +158 | 0 replies | |
| 26/32 | fuse: create notify.cfs/ fs/ fs/ +2 more | +461 | 0 replies | |
| 27/32 | fuse: set params in fuse_chan_set_initialized()fs/ fs/ fs/ +2 more | +44 | 2 replies | |
| 28/32 | fuse: remove fuse_mutex protection from fuse_dev_ioctl_sync_init()fs/ | +5 | 0 replies | |
| 29/32 | fuse: change ring->fc to ring->chanfs/ fs/ | +22 | 0 replies | |
| 30/32 | fuse: remove #include "fuse_i.h" from dev.c and dev_uring.cfs/ fs/ fs/ +4 more | +42 | 0 replies | |
| 31/32 | fuse: alloc pqueue before installing fch in fuse_devfs/ fs/ | +59 | 1 reply | |
| 32/32 | fuse: simplify fuse_dev_ioctl_clone()fs/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/32] fuse: improve transport and fs layer separation
This series is based on fuse-update-7.1 ingit://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.
---
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
Signature · 1 line
2.53.0