Re: [PATCH] nbcon/reboot: Flush nbcon consoles synchronously on reboot
From: John Ogness
Date: Fri Oct 09 2026 - 09:29:27 EST
On 2026-10-09, Petr Mladek <pmladek@xxxxxxxx> wrote:
> Anyway, IMHO, we should switch to NBCON_PRIO_EMERGENCY for the post-running
> states and flush the pending messages immediately. It is more
> reliable. It is easy to find the locations when system_state() is set.
> And all follow-up printk() calls will try the direct flush so that
> they won't rely on an explicit flush.
We need to be careful about abusing CPU state in order to get certain
functionality. We already have things in place to gracefully switch to
atomic after shutting down the printing kthreads.
I will not have a chance to seriously look at this until I get back next
week. But at a quick glance, it looks like a roll of duct tape.
John