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

From: Carlos Maiolino

Date: Fri Sep 11 2026 - 03:35:12 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: e240919ca727776f16a468d3d90686dc82cfe9cb

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