kmemleak: Do not trigger a scan when reading the debug/kmemleak file
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 26 Jun 2009 16:38:27 +0000 (17:38 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 26 Jun 2009 16:38:27 +0000 (17:38 +0100)
commit4698c1f2bbe44ce852ef1a6716973c1f5401a4c4
tree9ca3be2353d3757e2926689351eff2bb09aaf6f7
parentbab4a34afc301fdb81b6ea0e3098d96fc356e03a
kmemleak: Do not trigger a scan when reading the debug/kmemleak file

Since there is a kernel thread for automatically scanning the memory, it
makes sense for the debug/kmemleak file to only show its findings. This
patch also adds support for "echo scan > debug/kmemleak" to trigger an
intermediate memory scan and eliminates the kmemleak_mutex (scan_mutex
covers all the cases now).

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Documentation/kmemleak.txt
mm/kmemleak.c