Re: [PATCH v3 4/8] mm: use zone lock guard in set_migratetype_isolate()

Zi Yan
2026-04-29T15:39:52Z

On 29 Apr 2026, at 8:02, Dmitry Ilvokhin wrote:

> Use spinlock_irqsave scoped lock guard in set_migratetype_isolate() to
> replace the explicit lock/unlock pattern with automatic scope-based
> cleanup. The scoped variant is used to keep dump_page() outside the
> locked section to avoid a lockdep splat.
>
> Suggested-by: Steven Rostedt <rostedt@goodmis.org>
> Signed-off-by: Dmitry Ilvokhin <d@ilvokhin.com>
> Acked-by: Michal Hocko <mhocko@suse.com>
> ---
> mm/page_isolation.c | 60 ++++++++++++++++++++-------------------------
> 1 file changed, 26 insertions(+), 34 deletions(-)
>
Acked-by: Zi Yan <ziy@nvidia.com>

Best Regards,
Yan, Zi