lkml.org 
[lkml]   [2015]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] printk: Fixup the nmi printk mess
On Fri, Jun 12, 2015 at 05:35:05PM +0200, Petr Mladek wrote:
> I have got another idea. We already use a lock to synchronize
> readers. It might be used to avoid the race and keep the global
> flush().
>
> I played with it, see below. It is based on 2nd Peter's patch
> where I modified only struct nmi_seq_buf, __printk_nmi_flush(),
> and vprintk_nmi().
>
> It forces the reader to flush everything or nothing. It is less
> effective than the previous code but much more simple.
>
> It seems to work but it is just a proof-of-concept. Also I think that
> it would be possible to use the normal seq_buf in the end.

Sorry, got side tracked. Yes this looks ok. Want to submit a proper
patch?


\
 
 \ /
  Last update: 2015-06-25 20:21    [W:0.092 / U:2.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site