From: Catalin Marinas Date: Tue, 7 Jul 2009 09:32:58 +0000 (+0100) Subject: kmemleak: Do not acquire scan_mutex in kmemleak_open() X-Git-Tag: v2.6.31-rc3~8^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b87324d082d9d898e3c06b2a07a2b94b2430b8ba;p=pandora-kernel.git 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: Catalin Marinas --- Reading git-diff-tree failed