ext4: Fix data corruption when extending DIO write races with buffered read
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | iomap: Pass original DIO size to completion handlerfs/ fs/ fs/ +2 more | +11 | 0 replies | |
| 2/3 | ext4: Fix occasional generic/418 failurefs/ | +99 | 4 replies | |
| 3/3 | ext4: Fix overflow in ext4_iomap_alloc()fs/ | +1 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] ext4: Fix data corruption when extending DIO write races with buffered read
Hello,
This patch series fixes a bug manifesting as occasional generic/418 failure when direct IO write extending a file races with buffered read. Patch 1 extends iomap DIO code to pass original IO size to ->end_dio handler so that ext4 can tell whether everything has succeeded and we don't need expensive DIO cleanup (possible truncate of leftover blocks beyond i_size). Patch 2 fixes the ext4 bug, patch 3 fixes unrelated problem I've found in ext4 DIO code.
Honza