OSDN Git Service

locking/rtmutex: Only warn once on a trylock from bad context
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 27 May 2016 13:47:18 +0000 (15:47 +0200)
committer0ranko0P <ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:44 +0000 (04:42 +0800)
commit61627c8c9c82dd62fd1cc0111de5cb9f7b1ef111
treefa4fdb7d3003c617964d3f41a61ebcb691b9c05c
parentd54847e819411d9797afae3225b1b331482b0984
locking/rtmutex: Only warn once on a trylock from bad context

One warning should be enough to get one motivated to fix this. It is
possible that this happens more than once and that starts flooding the
output. Later the prints will be suppressed so we only get half of it.
Depending on the console system used it might not be helpful.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1464356838-1755-1-git-send-email-bigeasy@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/rtmutex.c