]> git.karo-electronics.de Git - karo-tx-linux.git/commit
printk: avoid double lock acquire
authorPeter Zijlstra <peterz@infradead.org>
Wed, 30 Nov 2011 04:03:02 +0000 (15:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:13:31 +0000 (15:13 +1100)
commit53c85ee96893f297a26dbab2c2365755d38662a9
tree69d3e1340b53c806b09265969053e899383b392f
parent913b21fee741868a6a5e7a89ab590b952550bcf2
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