aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2014-06-04 23:11:36 +0000
committerLinus Torvalds <[email protected]>2014-06-04 23:54:16 +0000
commitbd8d7cf5b8410fe98eba06a9aaa90efe88815d8a (patch)
treec00e0af9d7fbed0b5e6d89d7b2b8348513103328 /lib/string.c
parentprintk: release lockbuf_lock before calling console_trylock_for_printk() (diff)
downloadkernel-bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a.tar.gz
kernel-bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a.zip
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 <[email protected]> Reported-by: Fabio Estevam <[email protected]> Reported-by: Andy Shevchenko <[email protected]> Tested-by: Fabio Estevam <[email protected]> Tested-By: Valdis Kletnieks <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions