btrfs: fix direct IO writes with nowait and dsync iocb not syncing
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs: fix lost file sync on direct IO write with nowait and dsync iocbfs/ fs/ fs/ | +31 | 4 replies | |
| 2/2 | btrfs: update stale comment for nowait direct IO writesfs/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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:
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