Re: [PATCH v3 1/2] console: Replace #if 0 with atomic var 'ignore_console_lock_warning'

From
Petr Mladek <pmladek@suse.com>
Date
2018-07-20 09:07:46
Also in
dri-devel
Reply to
Thomas Zimmermann, 2018-07-19
On Thu 2018-07-19 12:16:00, Thomas Zimmermann wrote:
The macro WARN_CONSOLE_UNLOCKED prints a warning when a thread enters
the console's critical section without having acquired the console
lock. The console lock can be ignored when debugging the console using
printk, but this makes WARN_CONSOLE_UNLOCKED generate unnecessary
warnings.

The variable ignore_console_lock_warning temporarily disables
WARN_CONSOLE_UNLOCKED. Developers interested in debugging the console's
critical sections should increment it before entering the CS and
decrement it after leaving the CS. Setting ignore_console_lock_warning
is only for debugging. Regular operation should not manipulate it.

Acknoledgements: This patch is based on an earlier version by Steven
Rostedt. The use of atomic increment/decrement was suggested by Petr
Mladek.

Link: http://lkml.kernel.org/r/717e6337-e7a6-7a92-1c1b-8929a25696b5@suse.de (local)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Petr Mladek <pmladek@suse.com>

I have vacation the following two weeks. I prefer this version over
the previous one but I could live with both.

Best Regards,
Petr
Thread (11 messages) 11 messages, 6 authors, last reply 2018-07-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help