fuse: inode IO modes and mmap + parallel dio
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest9 patches 20 repliesIn review
Changes in v3 from the cover letter
- Split "wait for parallel dio" from "io modes" patch
- FOPEN_CACHE_IO reserved flag cannot set set by server
- O_DIRECT without FOPEN_DIRECT_IO opens in caching mode in anticipation for O_DIRECT flag change via fcntl()
- FOPEN_PARALLEL_DIRECT_WRITES requires FOPEN_DIRECT_IO
- Moved io mode helpers to iomode.c
- Change return type of fuse_inode_*_io_cache() helpers
- Separate fuse_dir_open() to not take the io open route at all
- Remove the need for isdir arg to fuse_file_put()
- Avoid post truncate attribute handling after atomic_open()
[1] https://lore.kernel.org/linux-fsdevel/[email protected]/
[2] https://lore.kernel.org/linux-fsdevel/[email protected]/
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | fuse: Fix VM_MAYSHARE and direct_io_allow_mmapfs/ | +4 | 0 replies | |
| 2/9 | fuse: Create helper function if DIO write needs exclusive lockfs/ | +45 | 1 reply | |
| 3/9 | fuse: Add fuse_dio_lock/unlock helper functionsfs/ | +34 | 0 replies | |
| 4/9 | fuse: factor out helper fuse_truncate_update_attr()fs/ | +21 | 0 replies | |
| 5/9 | fuse: allocate ff->release_args only if release is neededfs/ fs/ fs/ | +41 | 2 replies | |
| 6/9 | fuse: break up fuse_open_common()fs/ fs/ fs/ | +27 | 1 reply | |
| 7/9 | fuse: prepare for failing open responsefs/ fs/ fs/ | +16 | 0 replies | |
| 8/9 | fuse: introduce inode io modesfs/ fs/ fs/ +2 more | +257 | 4 replies | |
| 9/9 | fuse: allow parallel dio writes with FUSE_DIRECT_IO_ALLOW_MMAPfs/ fs/ fs/ | +59 | 12 replies |
Reviews trailers per patch
1 of 9 patches has a Reviewed-by or Acked-by.
| Patch | Amir Goldstein |
|---|---|
| 1/9 | R-b |
| 2/9 | |
| 3/9 | |
| 4/9 | |
| 5/9 | |
| 6/9 | |
| 7/9 | |
| 8/9 | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/9] fuse: inode IO modes and mmap + parallel dio
Miklos,
FUSE passthrough patches v15 [1] are based on this series, so I am posting it to the list for completion.
This v3 addresses most of your review comments on v2 posted by Bernd [2]. I added all the cleanup patches that you requested and addressed the review comments related to my io modes patch.
I've also split it up the io modes infrastructure patch from Bernd's change to wait for parallel dio in mmap and caching open.
The one thing I did not address is that I left the FOPEN_CACHE_IO flag as an internal flag as a way to signal "this dio file holds an iocachectr refcount". I wasn't sure that you are ok with it, but I wanted you to consider how the entire work looks after adding FOPEN_PASSTHROUGH.
Bernd did not have much review comments to address so he has tested my branch and asked me to post it.
Thanks,
Amir.
Changes since v2:
- Split "wait for parallel dio" from "io modes" patch
- FOPEN_CACHE_IO reserved flag cannot set set by server
- O_DIRECT without FOPEN_DIRECT_IO opens in caching mode in anticipation for O_DIRECT flag change via fcntl()
- FOPEN_PARALLEL_DIRECT_WRITES requires FOPEN_DIRECT_IO
- Moved io mode helpers to iomode.c
- Change return type of fuse_inode_*_io_cache() helpers
- Separate fuse_dir_open() to not take the io open route at all
- Remove the need for isdir arg to fuse_file_put()
- Avoid post truncate attribute handling after atomic_open()
[1] https://lore.kernel.org/linux-fsdevel/[email protected]/
[2] https://lore.kernel.org/linux-fsdevel/[email protected]/
Amir Goldstein (6):
fuse: factor out helper fuse_truncate_update_attr()
fuse: allocate ff->release_args only if release is needed
fuse: break up fuse_open_common()
fuse: prepare for failing open response
fuse: introduce inode io modes
fuse: allow parallel dio writes with FUSE_DIRECT_IO_ALLOW_MMAP
Bernd Schubert (3):
fuse: Fix VM_MAYSHARE and direct_io_allow_mmap
fuse: Create helper function if DIO write needs exclusive lock
fuse: Add fuse_dio_lock/unlock helper functions
fs/fuse/Makefile | 1 + fs/fuse/dir.c | 36 ++++- fs/fuse/file.c | 280 ++++++++++++++++++++++++-------------- fs/fuse/fuse_i.h | 30 +++- fs/fuse/iomode.c | 245 +++++++++++++++++++++++++++++++++ include/uapi/linux/fuse.h | 2 + 6 files changed, 482 insertions(+), 112 deletions(-) create mode 100644 fs/fuse/iomode.c
Signature · 1 line
2.34.1