iomap: fix readahead folio refcounting race
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest1 patch 10 repliesIn review
- v11 patch 4 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | iomap: fix readahead folio refcounting racefs/ | +21 | 10 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/1] iomap: fix readahead folio refcounting race
This patch is on top of Christian's vfs.fixes tree.
This fixes a race for readahead folios that was introduced by commit b2f35ac4146d ("iomap: add caller-provided callbacks for read and readahead").
The change in the patch was sanity-tested on fuse and xfs (with large folios disabled) by running generic/112 for both readahead and read_folio (simulated by commenting out the ->readahead() callback).
Changelog
---------
v1: https://lore.kernel.org/linux-fsdevel/[email protected]/
* Invalidate ctx->cur_folio instead of retaining readahead caller refcount (Matthew)
Joanne Koong (1):
iomap: fix readahead folio refcounting race
fs/iomap/buffered-io.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-)
Signature · 1 line
2.47.3