Skip to content

btrfs: fix direct IO writes with nowait and dsync iocb not syncing

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: fix lost file sync on direct IO write with nowait and dsync iocbfs/btrfs/btrfs_inode.h fs/btrfs/file.c fs/btrfs/inode.c+31 -104 replies
2/2btrfs: update stale comment for nowait direct IO writesfs/btrfs/file.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: fix direct IO writes with nowait and dsync iocb not syncing

From: Filipe Manana <[email protected]>

This fixes direct IO writes with nowait and dsync not getting synced after the writes complete (except when we fallback to blocking context). The first patch is the fix, while the second one only updates a comment that is now stale after 6.1-rc1.

Patch only applies to current misc-next, because a function prototype declaration was recently moved out of ctree.h into btrfs_inode.h. I left a version that applies cleanly against 6.0.6 and 6.1-rc at:

https://git.kernel.org/pub/scm/linux/kernel/git/fdmanana/linux.git/log/?h=async_dio_fsync_fix_6.1_6.0

Filipe Manana (2):
btrfs: fix lost file sync on direct IO write with nowait and dsync iocb
btrfs: update stale comment for nowait direct IO writes

 fs/btrfs/btrfs_inode.h |  5 ++++-
 fs/btrfs/file.c        | 26 ++++++++++++++++++--------
 fs/btrfs/inode.c       | 14 +++++++++++---
 3 files changed, 33 insertions(+), 12 deletions(-)
Signature · 1 line
2.35.1