Re: [PATCH 2/2] mm/kmemleak: move set_track_prepare() outside raw_spinlocks

From: Catalin Marinas
Date: Wed Nov 15 2023 - 09:20:03 EST


On Wed, Nov 15, 2023 at 04:21:38PM +0800, Liu Shixin wrote:
> set_track_prepare() will call __alloc_pages() which attempt to acquire
> zone->lock(spinlocks), so move it outside object->lock(raw_spinlocks)
> because it's not right to acquire spinlocks while holding raw_spinlocks
> in RT mode.
>
> Signed-off-by: Liu Shixin <liushixin2@xxxxxxxxxx>

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>

Thanks for the quick fixes.

--
Catalin