Skip to content
Commit b87324d0 authored by Catalin Marinas's avatar Catalin Marinas
Browse files

kmemleak: Do not acquire scan_mutex in kmemleak_open()



Initially, the scan_mutex was acquired in kmemleak_open() and released
in kmemleak_release() (corresponding to /sys/kernel/debug/kmemleak
operations). This was causing some lockdep reports when the file was
closed from a different task than the one opening it. This patch moves
the scan_mutex acquiring in kmemleak_write() or kmemleak_seq_start()
with releasing in kmemleak_seq_stop().

Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 288c857d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment