export/fuse: Use coroutines and multi-threading
Status from this message: Thanks, applied to the block branch.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest25 patches 1 replyApplied
- v424 patches 4 repliesSuperseded
- v321 patches 23 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 21 patches | 18 replies | Superseded | |
| v1 | 15 patches | 43 replies | Superseded |
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/25 | fuse: Copy write buffer content before pollingblock/ | +16 | 0 replies | |
| 2/25 | fuse: Ensure init clean-up even with error_fatalblock/ | +1 | 0 replies | |
| 3/25 | fuse: Remove superfluous empty lineblock/ | +0 | 0 replies | |
| 4/25 | fuse: Explicitly set inode ID to 1block/ | +1 | 0 replies | |
| 5/25 | fuse: Change setup_... to mount_fuse_export()block/ | +22 | 0 replies | |
| 6/25 | fuse: Destroy session on mount_fuse_export() failblock/ | +7 | 0 replies | |
| 7/25 | fuse: Fix mount optionsblock/ tests/ tests/ +2 more | +23 | 0 replies | |
| 8/25 | fuse: Set direct_io and parallel_direct_writesblock/ tests/ | +3 | 0 replies | |
| 9/25 | fuse: Introduce fuse_{at,de}tach_handlers()block/ | +16 | 0 replies | |
| 10/25 | fuse: Introduce fuse_{inc,dec}_in_flight()block/ | +21 | 0 replies | |
| 11/25 | fuse: Add halted flagblock/ | +30 | 0 replies | |
| 12/25 | fuse: fuse_{read,write}: Rename length to blk_lenblock/ | +12 | 0 replies | |
| 13/25 | iotests/308: Use conv=notrunc to test growabilitytests/ | +3 | 0 replies | |
| 14/25 | fuse: Explicitly handle non-grow post-EOF accessesblock/ tests/ tests/ | +59 | 0 replies | |
| 15/25 | block: Move qemu_fcntl_addfl() into osdep.cblock/ include/ util/ | +20 | 0 replies | |
| 16/25 | fuse: Drop permission changes in fuse_do_truncateblock/ | +2 | 0 replies | |
| 17/25 | fuse: Manually process requests (without libfuse)block/ | +721 | 0 replies | |
| 18/25 | fuse: Reduce max read sizeblock/ | +1 | 0 replies | |
| 19/25 | fuse: Process requests in coroutinesblock/ | +104 | 0 replies | |
| 20/25 | block/export: Add multi-threading interfaceblock/ block/ block/ +4 more | +113 | 0 replies | |
| 21/25 | iotests/307: Test multi-thread export interfacetests/ tests/ | +65 | 0 replies | |
| 22/25 | fuse: Make shared export state atomicblock/ | +13 | 0 replies | |
| 23/25 | fuse: Implement multi-threadingblock/ | +153 | 0 replies | |
| 24/25 | qapi/block-export: Document FUSE's multi-threadingqapi/ | +5 | 0 replies | |
| 25/25 | iotests/308: Add multi-threading sanity testtests/ tests/ | +107 | 0 replies |
Reviews trailers per patch
13 of 25 patches have a Reviewed-by or Acked-by.
| Patch | Stefan Hajnoczi | Kevin Wolf | Markus Armbruster |
|---|---|---|---|
| 1/25 | R-b | ||
| 2/25 | R-b | ||
| 3/25 | R-b | ||
| 4/25 | R-b | ||
| 5/25 | R-b | ||
| 6/25 | |||
| 7/25 | R-b | ||
| 8/25 | R-b | ||
| 9/25 | R-b | ||
| 10/25 | R-b | ||
| 11/25 | |||
| 12/25 | |||
| 13/25 | |||
| 14/25 | |||
| 15/25 | |||
| 16/25 | |||
| 17/25 | |||
| 18/25 | R-b | ||
| 19/25 | |||
| 20/25 | R-b | A-b | |
| 21/25 | |||
| 22/25 | |||
| 23/25 | |||
| 24/25 | A-b | ||
| 25/25 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v5 00/25] export/fuse: Use coroutines and multi-threading
Hi,
This series:
- Fixes some bugs/minor inconveniences,
- Removes libfuse from the request processing path,
- Make the FUSE export use coroutines for request handling,
More detail on the v1 cover letter:
https://lists.nongnu.org/archive/html/qemu-block/2025-03/msg00359.html
v2 cover letter:
https://lists.nongnu.org/archive/html/qemu-block/2025-06/msg00040.html
v3 cover letter:
https://lists.nongnu.org/archive/html/qemu-block/2025-07/msg00005.html
v4 cover letter:
https://lists.nongnu.org/archive/html/qemu-block/2026-02/msg00324.html
v4 fixes the problems Kevin has pointed out on list:
- Fix fuse-allow-other test by making the export writable,
- Drop outdated comment,
- Add comment explaining why bufptr should be explicitly set to NULL in the empty-read branch of fuse_read().
And the TSA warnings indicated off-list, by making all FUSE handling functions (which run in a coroutine) GRAPH_RDLOCK, having fuse_co_process_request() take the lock. For this, we need to drop the permission manipulation functions in the I/O path, but that is easy (new patch 16).
git-backport-diff from v4:
Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively
001/25:[----] [--] 'fuse: Copy write buffer content before polling' 002/25:[----] [--] 'fuse: Ensure init clean-up even with error_fatal' 003/25:[----] [--] 'fuse: Remove superfluous empty line' 004/25:[----] [--] 'fuse: Explicitly set inode ID to 1' 005/25:[----] [--] 'fuse: Change setup_... to mount_fuse_export()' 006/25:[----] [--] 'fuse: Destroy session on mount_fuse_export() fail' 007/25:[0012] [FC] 'fuse: Fix mount options'
008/25:[----] [--] 'fuse: Set direct_io and parallel_direct_writes' 009/25:[----] [--] 'fuse: Introduce fuse_{at,de}tach_handlers()' 010/25:[----] [--] 'fuse: Introduce fuse_{inc,dec}_in_flight()' 011/25:[----] [--] 'fuse: Add halted flag'
012/25:[----] [--] 'fuse: fuse_{read,write}: Rename length to blk_len' 013/25:[----] [--] 'iotests/308: Use conv=notrunc to test growability' 014/25:[----] [--] 'fuse: Explicitly handle non-grow post-EOF accesses' 015/25:[----] [--] 'block: Move qemu_fcntl_addfl() into osdep.c' 016/25:[down] 'fuse: Drop permission changes in fuse_do_truncate' 017/25:[0003] [FC] 'fuse: Manually process requests (without libfuse)' 018/25:[----] [-C] 'fuse: Reduce max read size' 019/25:[0034] [FC] 'fuse: Process requests in coroutines' 020/25:[----] [--] 'block/export: Add multi-threading interface' 021/25:[----] [--] 'iotests/307: Test multi-thread export interface' 022/25:[----] [--] 'fuse: Make shared export state atomic' 023/25:[----] [--] 'fuse: Implement multi-threading' 024/25:[----] [--] 'qapi/block-export: Document FUSE's multi-threading' 025/25:[----] [--] 'iotests/308: Add multi-threading sanity test'
Hanna Czenczek (25):
fuse: Copy write buffer content before polling
fuse: Ensure init clean-up even with error_fatal
fuse: Remove superfluous empty line
fuse: Explicitly set inode ID to 1
fuse: Change setup_... to mount_fuse_export()
fuse: Destroy session on mount_fuse_export() fail
fuse: Fix mount options
fuse: Set direct_io and parallel_direct_writes
fuse: Introduce fuse_{at,de}tach_handlers()
fuse: Introduce fuse_{inc,dec}_in_flight()
fuse: Add halted flag
fuse: fuse_{read,write}: Rename length to blk_len iotests/308: Use conv=notrunc to test growability
fuse: Explicitly handle non-grow post-EOF accesses
block: Move qemu_fcntl_addfl() into osdep.c
fuse: Drop permission changes in fuse_do_truncate
fuse: Manually process requests (without libfuse)
fuse: Reduce max read size
fuse: Process requests in coroutines block/export: Add multi-threading interface iotests/307: Test multi-thread export interface
fuse: Make shared export state atomic
fuse: Implement multi-threading qapi/block-export: Document FUSE's multi-threading iotests/308: Add multi-threading sanity test
qapi/block-export.json | 41 +- include/block/export.h | 12 +- include/qemu/osdep.h | 1 + block/export/export.c | 48 +- block/export/fuse.c | 1311 +++++++++++++---- block/export/vduse-blk.c | 7 + block/export/vhost-user-blk-server.c | 8 + block/file-posix.c | 17 +- nbd/server.c | 6 + util/osdep.c | 18 + tests/qemu-iotests/307 | 47 + tests/qemu-iotests/307.out | 18 + tests/qemu-iotests/308 | 95 +- tests/qemu-iotests/308.out | 71 +- tests/qemu-iotests/tests/fuse-allow-other | 3 +- tests/qemu-iotests/tests/fuse-allow-other.out | 9 +- 16 files changed, 1369 insertions(+), 343 deletions(-)
Signature · 1 line
2.53.0