aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2011-06-07 11:15:33 +0200
committerIngo Molnar <[email protected]>2011-06-07 12:50:02 +0200
commit0b5e1c5255e7ee8670e077e8224e5c2281229a5b (patch)
treeeb6f967b14d69553e380ab2f13a2dcd8789e865e /lib/cpu-notifier-error-inject.c
parent59c5f46fbe01a00eedf54a23789634438bb80603 (diff)
printk: Release console_sem after logbuf_lock
Release console_sem after unlocking the logbuf_lock so that we don't generate wakeups while holding logbuf_lock. This avoids some lock inversion troubles once we remove the lockdep_off bits between logbuf_lock and rq->lock (prints while holding rq->lock vs doing wakeups while holding logbuf_lock). There's of course still an actual deadlock where the printk()s under rq->lock will issue a wakeup from the up() call, but lockdep won't warn about that since semaphores are not tracked. Signed-off-by: Peter Zijlstra <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Andrew Morton <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions