]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/kmemleak: move set_track_prepare() outside raw_spinlocks
authorLiu Shixin <liushixin2@huawei.com>
Wed, 15 Nov 2023 08:21:38 +0000 (16:21 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:15:57 +0000 (13:15 -0800)
commitf6f6ec7a47c56b458055d798a1daee318253446d
tree92228f183adee19b9f9ce6fa7a40c8bc58449236
parent091995970e9502d2248460c8969de115cee79aed
mm/kmemleak: move set_track_prepare() outside raw_spinlocks

set_track_prepare() will call __alloc_pages() which attempts 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.

Link: https://lkml.kernel.org/r/20231115082138.2649870-3-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Patrick Wang <patrick.wang.shcn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kmemleak.c