Re: [PATCH] xfs: take hm->lock in xfs_ioc_health_monitor() before insert

From: Carlos Maiolino

Date: Thu Sep 10 2026 - 05:23:49 EST


On Sun, 06 Sep 2026 20:16:29 +0530, Deepanshu Kartikey wrote:
> __xfs_healthmon_insert() asserts that hm->lock is held
> (lockdep_assert_held), but xfs_ioc_health_monitor() called it right
> after allocating hm, before ever taking the lock, triggering a
> lockdep warning.
>
> Take hm->lock around the call.
>
> [...]

Applied to for-next, thanks!

[1/1] xfs: take hm->lock in xfs_ioc_health_monitor() before insert
commit: 4870da4f49ae2df4f804a6f770d56846e57495d7

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>