Re: [RFC PATCH v1 06/25] printk-rb: add blocking reader support

2019-02-19 Thread John Ogness
On 2019-02-18, Petr Mladek wrote: >> Add a blocking read function for readers. An irq_work function is >> used to signal the wait queue so that write notification can >> be triggered from any context. > > I would be more precise what exacly is problematic in which context. > Something like: > >

Re: [RFC PATCH v1 06/25] printk-rb: add blocking reader support

2019-02-18 Thread Petr Mladek
On Tue 2019-02-12 15:29:44, John Ogness wrote: > Add a blocking read function for readers. An irq_work function is > used to signal the wait queue so that write notification can > be triggered from any context. I would be more precise what exacly is problematic in which context. Something like:

[RFC PATCH v1 06/25] printk-rb: add blocking reader support

2019-02-12 Thread John Ogness
Add a blocking read function for readers. An irq_work function is used to signal the wait queue so that write notification can be triggered from any context. Signed-off-by: John Ogness --- include/linux/printk_ringbuffer.h | 20 lib/printk_ringbuffer.c | 49