• Catalin Marinas's avatar
    kmemleak: Do not acquire scan_mutex in kmemleak_open() · b87324d0
    Catalin Marinas authored
    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>
    b87324d0
kmemleak.c 40 KB