[lkml]   [2017]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] printk: modify console_unlock with printk-safe macros
On Sat, Jul 15, 2017 at 1:36 PM, Pierre Kuo <> wrote:
> In commit de6fcbdb68b2 ("printk: convert the rest to printk-safe"), we
> create 4 helper macros to make printk-safe usage easier.
> Here we modify some part of console_unlock with above marcros.

> raw_spin_lock(&logbuf_lock);

...and now we have "orphaned" call to lock.

> - raw_spin_unlock(&logbuf_lock);

> + logbuf_unlock_irqrestore(flags);

Personally I can't say this makes things clearer.

With Best Regards,
Andy Shevchenko

 \ /
  Last update: 2017-07-15 14:37    [W:0.056 / U:2.028 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site