]> git.karo-electronics.de Git - karo-tx-linux.git/commit
printk: avoid double lock acquire
authorPeter Zijlstra <peterz@infradead.org>
Fri, 2 Dec 2011 03:06:49 +0000 (14:06 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 5 Dec 2011 04:19:00 +0000 (15:19 +1100)
commit84d00eb846ae55407b9909baf1b8ba41881db874
treef1e58f1b26258844b800bf0f44705dbe2fa2d420
parentec19ad938ba424463feb3316bcaa0834164fcc1d
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