diff options
author | Jan Kara <jack@suse.cz> | 2014-06-04 16:11:36 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 16:54:16 -0700 |
commit | bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a (patch) | |
tree | c00e0af9d7fbed0b5e6d89d7b2b8348513103328 /kernel/audit.c | |
parent | 608873cacb9d0d2811586fcc79a38b64eabd6d32 (diff) | |
download | op-kernel-dev-bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a.zip op-kernel-dev-bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a.tar.gz |
printk: fix lockdep instrumentation of console_sem
Printk calls mutex_acquire() / mutex_release() by hand to instrument
lockdep about console_sem. However in some corner cases the
instrumentation is missing. Fix the problem by creating helper functions
for locking / unlocking console_sem which take care of lockdep
instrumentation as well.
Signed-off-by: Jan Kara <jack@suse.cz>
Reported-by: Fabio Estevam <festevam@gmail.com>
Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-By: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/audit.c')
0 files changed, 0 insertions, 0 deletions