Re: [Cluster-devel] [PATCH v5 2/9] iomap/gfs2: Unlock and put folio in page_done handler

2023-01-08 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig

Re: [Cluster-devel] [PATCH v5 2/9] iomap/gfs2: Unlock and put folio in page_done handler

2023-01-04 Thread Darrick J. Wong
On Sat, Dec 31, 2022 at 04:09:12PM +0100, Andreas Gruenbacher wrote: > When an iomap defines a ->page_done() handler in its page_ops, delegate > unlocking the folio and putting the folio reference to that handler. > > This allows to fix a race between journaled data writes and folio > writeback

[Cluster-devel] [PATCH v5 2/9] iomap/gfs2: Unlock and put folio in page_done handler

2022-12-31 Thread Andreas Gruenbacher
When an iomap defines a ->page_done() handler in its page_ops, delegate unlocking the folio and putting the folio reference to that handler. This allows to fix a race between journaled data writes and folio writeback in gfs2: before this change, gfs2_iomap_page_done() was called after unlocking