Commit 470c25f
committed
mm: percpu: use kmemleak_ignore_phys() instead of kmemleak_free()
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2151065
commit a317ebc
Author: Patrick Wang <patrick.wang.shcn@gmail.com>
Date: Tue, 5 Jul 2022 19:31:58 +0800
mm: percpu: use kmemleak_ignore_phys() instead of kmemleak_free()
Kmemleak recently added a rbtree to store the objects allocted with
physical address. Those objects can't be freed with kmemleak_free().
According to the comments, percpu allocations are tracked by kmemleak
separately. Kmemleak_free() was used to avoid the unnecessary
tracking. If kmemleak_free() fails, those objects would be scanned by
kmemleak, which is unnecessary but shouldn't lead to other effects.
Use kmemleak_ignore_phys() instead of kmemleak_free() for those
objects.
Link: https://lkml.kernel.org/r/20220705113158.127600-1-patrick.wang.shcn@gmail.com
Fixes: 0c24e06 ("mm: kmemleak: add rbtree and store physical address for objects allocated with PA")
Signed-off-by: Patrick Wang <patrick.wang.shcn@gmail.com>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Waiman Long <longman@redhat.com>1 parent 421c8f5 commit 470c25f
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3103 | 3103 | | |
3104 | 3104 | | |
3105 | 3105 | | |
3106 | | - | |
| 3106 | + | |
3107 | 3107 | | |
3108 | 3108 | | |
3109 | 3109 | | |
| |||
3303 | 3303 | | |
3304 | 3304 | | |
3305 | 3305 | | |
3306 | | - | |
| 3306 | + | |
3307 | 3307 | | |
3308 | 3308 | | |
3309 | 3309 | | |
| |||
3416 | 3416 | | |
3417 | 3417 | | |
3418 | 3418 | | |
3419 | | - | |
| 3419 | + | |
3420 | 3420 | | |
3421 | 3421 | | |
3422 | 3422 | | |
| |||
0 commit comments