]> git.karo-electronics.de Git - karo-tx-linux.git/commit
printk: avoid double lock acquire
authorPeter Zijlstra <peterz@infradead.org>
Thu, 8 Dec 2011 04:32:02 +0000 (15:32 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Dec 2011 04:52:18 +0000 (15:52 +1100)
commit57abd90d06f5fd450ea4bd68458c664c4de9f0d0
tree709d164ff33a8b975ae8d666a1d2b0d17d9e548f
parentcb3044aef8c2207afaa8f09a4761442ba1ad22e4
printk: avoid double lock acquire

Commit 4f2a8d3cf5e ("printk: Fix console_sem vs logbuf_lock unlock race")
introduced another silly bug where we would want to acquire an already
held lock.  Avoid this.

Reported-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/printk.c