]> git.ipfire.org Git - thirdparty/linux.git/commit
iomap: wait for batched folios to be stable in __iomap_get_folio
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Jan 2026 15:39:17 +0000 (16:39 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 14 Jan 2026 16:06:02 +0000 (17:06 +0100)
commit561940a7ee81319b9cba06d2b7ba6b45a5c41cbc
tree36e51567c8d1d5d89a44a0f5716cc2eaeb95f3fc
parentab7ad7abb3660c58ffffdf07ff3bb976e7e0afa0
iomap: wait for batched folios to be stable in __iomap_get_folio

__iomap_get_folio needs to wait for writeback to finish if the file
requires folios to be stable for writes.  For the regular path this is
taken care of by __filemap_get_folio, but for the newly added batch
lookup it has to be done manually.

This fixes xfs/131 failures when running on PI-capable hardware.

Fixes: 395ed1ef0012 ("iomap: optional zero range dirty folio processing")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260113153943.3323869-1-hch@lst.de
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c