Re: [PATCH v4 2/3] ext4: hold group lock in ext4 kunit test

From: Guenter Roeck
Date: Mon Mar 04 2024 - 13:55:54 EST


On Tue, Mar 05, 2024 at 12:35:42AM +0800, Kemeng Shi wrote:
> Although there is no concurrent block allocation/free in unit test,
> internal functions mb_mark_used and mb_free_blocks assert group
> lock is always held. Acquire group before calling mb_mark_used and
> mb_free_blocks in unit test to avoid the assertion.
>
> Signed-off-by: Kemeng Shi <shikemeng@xxxxxxxxxxxxxxx>
> Reported-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Tested-by: Guenter Roeck <linux@xxxxxxxxxxxx>