Re: [PATCH] ext4: fast commit: make s_fc_lock reclaim-safe
From: Theodore Ts'o
Date: Wed Jan 28 2026 - 13:08:37 EST
On Tue, 06 Jan 2026 20:06:21 +0800, Li Chen wrote:
> s_fc_lock can be acquired from inode eviction and thus is
> reclaim unsafe. Since the fast commit path holds s_fc_lock while writing
> the commit log, allocations under the lock can enter reclaim and invert
> the lock order with fs_reclaim. Add ext4_fc_lock()/ext4_fc_unlock()
> helpers which acquire s_fc_lock under memalloc_nofs_save()/restore()
> context and use them everywhere so allocations under the lock cannot
> recurse into filesystem reclaim.
>
> [...]
Applied, thanks!
[1/1] ext4: fast commit: make s_fc_lock reclaim-safe
commit: 491f2927ae097e2d405afe0b3fe841931ab8aad2
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>