public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] iomap: fix readahead folio refcounting race
@ 2026-01-16  1:54 Joanne Koong
  2026-01-16  1:54 ` [PATCH v2 1/1] " Joanne Koong
  0 siblings, 1 reply; 12+ messages in thread
From: Joanne Koong @ 2026-01-16  1:54 UTC (permalink / raw)
  To: brauner; +Cc: willy, djwong, hch, bfoster, linux-fsdevel

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/20260114180255.3043081-1-joannelkoong@gmail.com/
* 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(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-01-21  5:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16  1:54 [PATCH v2 0/1] iomap: fix readahead folio refcounting race Joanne Koong
2026-01-16  1:54 ` [PATCH v2 1/1] " Joanne Koong
2026-01-16  2:52   ` Matthew Wilcox
2026-01-16 18:36     ` Joanne Koong
2026-01-16 21:45       ` Matthew Wilcox
2026-01-16 22:02         ` Joanne Koong
2026-01-17  2:30           ` Darrick J. Wong
2026-01-21  0:34             ` Joanne Koong
2026-01-21  1:07               ` Matthew Wilcox
2026-01-21  4:12                 ` Joanne Koong
2026-01-21  4:42                   ` Matthew Wilcox
2026-01-21  5:51                     ` Joanne Koong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox