Re: Potential Linux Crash: WARNING in ext4_dirty_folio in Linux kernel v6.13-rc5

From: Matthew Wilcox
Date: Fri Apr 04 2025 - 09:52:22 EST


On Fri, Apr 04, 2025 at 11:09:37AM +0200, Vlastimil Babka wrote:
> On 4/3/25 19:12, Matthew Wilcox wrote:
> > Ideas still on the table:
> >
> > - Convert all filesystems to use the XFS inode management scheme.
> > Nobody is thrilled by this large amount of work.
> > - Find a simpler version of the XFS scheme to implement for other
> > filesystems.
>
> I don't know the XFS scheme, but this situation seems like a match for the
> mempool semantics? (I assume it's also a lot of work to implement)

Ah; no. evicting an inode may consume an arbitrary amount of memory,
run transactions, wait for I/O, etc, etc. We really shouldn't be doing
it as part of memory reclaim. I should probably have said that as part
of this writeup, so thanks for bringing it up.