Re: [PATCH] printk: use console_trylock() in console_cpu_notify()

2017-03-23 Thread Petr Mladek
On Wed 2017-01-25 16:02:36, Petr Mladek wrote: > On Sat 2017-01-21 19:47:29, Sergey Senozhatsky wrote: > > There is no need to always call blocking console_lock() in > > console_cpu_notify(), it's quite possible that console_sem can > > be locked by other CPU on the system, either already printing

Re: [PATCH] printk: use console_trylock() in console_cpu_notify()

2017-02-02 Thread Petr Mladek
On Thu 2017-02-02 12:53:47, Sergey Senozhatsky wrote: > Hello, > > thanks for taking a look, Petr. > > On (01/25/17 16:02), Petr Mladek wrote: > [..] > > > Signed-off-by: Sergey Senozhatsky > > > --- > > > kernel/printk/printk.c | 11 ++- > > > 1 file changed, 6 insertions(+), 5 deletio

Re: [PATCH] printk: use console_trylock() in console_cpu_notify()

2017-02-01 Thread Sergey Senozhatsky
Hello, thanks for taking a look, Petr. On (01/25/17 16:02), Petr Mladek wrote: [..] > > Signed-off-by: Sergey Senozhatsky > > --- > > kernel/printk/printk.c | 11 ++- > > 1 file changed, 6 insertions(+), 5 deletions(-) > > > > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.

Re: [PATCH] printk: use console_trylock() in console_cpu_notify()

2017-01-25 Thread Petr Mladek
On Sat 2017-01-21 19:47:29, Sergey Senozhatsky wrote: > There is no need to always call blocking console_lock() in > console_cpu_notify(), it's quite possible that console_sem can > be locked by other CPU on the system, either already printing > or soon to begin printing the messages. console_lock(