Skip to content

iomap: fix readahead folio refcounting race

Joanne Koong linux-fsdevel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 10 repliesIn review
  2. v11 patch 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1iomap: fix readahead folio refcounting racefs/iomap/buffered-io.c+21 -210 replies

Reviews trailers per patch

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

Read the v2 thread

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