Skip to content

fuse: add a new fuse init flag to relax restrictions in no cache mode

Hao Xu linux-fsdevel 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 6 repliesApplied
  2. v33 patches 19 repliesSuperseded
  3. v21 patch 2 repliesSuperseded

Changes in v4 from the cover letter

fix race condition for buffered write and direct read by flushing pages before direct read to avoid to get stale data

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3fuse: invalidate page cache pages before direct writefs/fuse/file.c+11 -14 replies
2/3fuse: add a new fuse init flag to relax restrictions in no cache modefs/fuse/file.c fs/fuse/fuse_i.h fs/fuse/inode.c +1 more+16 -30 replies
3/3fuse: write back dirty pages before direct write in direct_io_relax modefs/fuse/file.c+7 -01 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJiachen Zhang
1/3T-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] fuse: add a new fuse init flag to relax restrictions in no cache mode

From: Hao Xu <[email protected]>

Patch 1 is a fix for private mmap in FOPEN_DIRECT_IO mode
This is added here together since the later two depends on it.
Patch 2 is the main dish
Patch 3 is to maintain direct io logic for shared mmap in FOPEN_DIRECT_IO mode

v3 -> v4
fix race condition for buffered write and direct read by flushing pages before direct read to avoid to get stale data

v2 -> v3
add patch 1 fix here, and adjust it follow Bernd's comment add patch 3 which does right thing for shared mmap in FOPEN_DIRECT_IO mode

v1 -> v2:
make the new flag a fuse init one rather than a open flag since it's not common that different files in a filesystem has different strategy of shared mmap.

Hao Xu (3):
fuse: invalidate page cache pages before direct write
fuse: add a new fuse init flag to relax restrictions in no cache mode
fuse: write back dirty pages before direct write in direct_io_relax
mode

 fs/fuse/file.c            | 26 +++++++++++++++++++++++---
 fs/fuse/fuse_i.h          |  3 +++
 fs/fuse/inode.c           |  5 ++++-
 include/uapi/linux/fuse.h |  4 ++++
 4 files changed, 34 insertions(+), 4 deletions(-)

base-commit: 5d0c230f1de8c7515b6567d9afba1f196fb4e2f4

Signature · 1 line
2.25.1