Re: [RFC PATCH v4 0/9] printk: new ringbuffer implementation

From: Sergey Senozhatsky
Date: Fri Sep 06 2019 - 15:54:04 EST


On (09/06/19 16:01), Peter Zijlstra wrote:
> > 2. The simple approach works only with lockless consoles. We need
> > something else for the rest at least for NMI. Simle offloading
> > to a kthread has been blocked for years. People wanted the
> > trylock-and-flush-immediately approach.
>
> Have an irq_work to wake up a kthread that will print to shit consoles.

Do we need sched dependency? We can print a batch of pending
logbuf messages and queue another irw_work if there are more
pending messages, right?

-ss