Re: [RFC PATCH v1 09/25] printk: remove exclusive console hack
From: Petr Mladek
Date: Tue Feb 19 2019 - 09:03:23 EST
On Tue 2019-02-12 15:29:47, John Ogness wrote:
> In order to support printing the printk log history when new
> consoles are registered, a global exclusive_console variable is
> temporarily set. This only works because printk runs with
> preemption disabled.
>
> When console printing is moved to a fully preemptible dedicated
> kthread, this hack no longer works.
We need to keep this functionality. Otherwise, people would miss
the beginning of the log on some consoles. Kernel does not know
what console is important for monitoring or debugging.
Fortunately, it should be easy to implement this with
the new ring buffer a much cleaner way. Anyway, you
need to switch to the new implementation in a single
patch to avoid regression.
I would personally postpone this into a separate patchset.
Best Regards,
Petr