Commit f97960fb authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

kernel/printk: Block cpuhotplug callback when tasks are frozen

The recent conversion of the console hotplug notifier to the state machine
missed the fact, that the notifier only operated on the non frozen
transitions. As a consequence the console_lock/unlock() pair is also
invoked during suspend, which results in a lockdep warning.

Restore the previous state by making the lock/unlock conditional on

Fixes: 90b14889

 ("kernel/printk: Convert to hotplug state machine")
Reported-and-tested-by: default avatarBorislav Petkov <>

Signed-off-by: default avatarThomas Gleixner <>
Cc: Peter Zijlstra <>
Cc: Sebastian Andrzej Siewior <>
parent 0e285d36
......@@ -2194,8 +2194,10 @@ void resume_console(void)
static int console_cpu_notify(unsigned int cpu)
if (!cpuhp_tasks_frozen) {
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment