diff options
author | Catalin Marinas | 2014-05-10 00:36:59 +0200 |
---|---|---|
committer | Linus Torvalds | 2014-05-11 10:55:48 +0200 |
commit | 3551a9280bcb728980a13783ff295e9f0bdedd9a (patch) | |
tree | 6993600a8b65e4d03db299162095cf205575af75 /mm/mremap.c | |
parent | MAINTAINERS: update maintainership of LTP (diff) | |
download | kernel-qcow2-linux-3551a9280bcb728980a13783ff295e9f0bdedd9a.tar.gz kernel-qcow2-linux-3551a9280bcb728980a13783ff295e9f0bdedd9a.tar.xz kernel-qcow2-linux-3551a9280bcb728980a13783ff295e9f0bdedd9a.zip |
mm: postpone the disabling of kmemleak early logging
Commit 8910ae896c8c ("kmemleak: change some global variables to int"),
in addition to the atomic -> int conversion, moved the disabling of
kmemleak_early_log to the beginning of the kmemleak_init() function,
before the full kmemleak tracing is actually enabled. In this small
window, kmem_cache_create() is called by kmemleak which triggers
additional memory allocation that are not traced. This patch restores
the original logic with kmemleak_early_log disabling when kmemleak is
fully functional.
Fixes: 8910ae896c8c (kmemleak: change some global variables to int)
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Li Zefan <lizefan@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mremap.c')
0 files changed, 0 insertions, 0 deletions