Re: lockdep splat during suspend

From: Borislav Petkov
Date: Thu Nov 17 2016 - 12:05:20 EST


On Thu, Nov 17, 2016 at 05:31:55PM +0100, Thomas Gleixner wrote:
> --- a/kernel/printk/printk.c
> +++ b/kernel/printk/printk.c
> @@ -2194,8 +2194,10 @@ void resume_console(void)
> */
> static int console_cpu_notify(unsigned int cpu)
> {
> - console_lock();
> - console_unlock();
> + if (!cpuhp_tasks_frozen) {
> + console_lock();
> + console_unlock();
> + }
> return 0;
> }

Reported-and-tested-by: Borislav Petkov <bp@xxxxxxx>

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.