Re: [PATCH] printk: CON_PRINTBUFFER console registration is a bit racy

From: Sergey Senozhatsky
Date: Fri Sep 14 2018 - 07:20:00 EST


On (09/14/18 10:59), Petr Mladek wrote:
>
> Well, I am not sure if it is worth the code complexity.
>

Well, I don't think we need to bother that much here. Besides,
exclusive_console is cleared under logbuf_lock with preemption
disabled now. So we set it under logbuf_lock and !irq and we
clear it under logbuf_lock and !irq. Looks quite OK to me.

-ss