Re: [PATCH RFC v2 1/2] filemap: defer dropbehind invalidation from IRQ context
From: Christoph Hellwig
Date: Thu Feb 26 2026 - 17:04:44 EST
On Wed, Feb 25, 2026 at 03:52:41PM -0700, Jens Axboe wrote:
> One solution could potentially be to use per-cpu lists for this. If you
> have N threads working on separate block devices, they will tend to be
> sticky to their CPU anyway.
Having per-cpu lists would be nice, but I'd really love to have them
in iomap, as we have quite a few iomap features that would benefit
from generic offload to user context on completion. Right now we
only have code for that in XFS, and that's because the list is anchored
in the inode. Based on the commit message in cb357bf3d105f that's
intentional for the write completions there, but for all other
completions a generic per-cpu list would probably work fine.