Re: [PATCH v3 15/17] ext4: convert free groups order lists to xarrays

From: Guenter Roeck
Date: Thu Jul 24 2025 - 01:20:47 EST


On 7/23/25 21:54, Theodore Ts'o wrote:
On Wed, Jul 23, 2025 at 08:55:14PM -0700, Guenter Roeck wrote:
Hi,

On Mon, Jul 14, 2025 at 09:03:25PM +0800, Baokun Li wrote:
While traversing the list, holding a spin_lock prevents load_buddy, making
direct use of ext4_try_lock_group impossible. This can lead to a bouncing
scenario where spin_is_locked(grp_A) succeeds, but ext4_try_lock_group()
fails, forcing the list traversal to repeatedly restart from grp_A.


This patch causes crashes for pretty much every architecture when
running unit tests as part of booting.

I'm assuming that you're using a randconfig that happened to enable
CONFIG_EXT4_KUNIT_TESTS=y.


I enable as many kunit tests as possible, including CONFIG_EXT4_KUNIT_TESTS=y,
on top of various defconfigs. That results in:
total: 637 pass: 59 fail: 578
with my qemu boot tests, which in a way is quite impressive ;-).

Guenter