Re: [PATCH] ext4: complete dropbehind writeback in task context

From: Theodore Ts'o

Date: Thu Nov 19 2026 - 09:54:26 EST



On Mon, 12 Oct 2026 14:04:37 -0400, Tal Zussman wrote:
> ext4_end_bio() ends writeback directly from bio completion, which
> usually runs in interrupt context, unless the io_end has unwritten
> extents to convert and is completed from ext4's workqueue.
> folio_end_dropbehind() only invalidates the folios of an RWF_DONTCACHE
> write when it runs in task context, and silently skips them otherwise.
> So on ext4, dontcache writes that overwrite blocks that are already
> written, or that allocate blocks without unwritten extents, leave their
> folios in the page cache. Dropping them was best effort so far, as there
> was no way to get task context from bio completion.
>
> [...]

Applied, thanks!

[1/1] ext4: complete dropbehind writeback in task context
commit: 5e835ae2e426b09699e05b6d49ef7fd157ee9dad

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>