lkml.org 
[lkml]   [2020]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] printk: ringbuffer: fix setting state in desc_read()
On Mon 2020-09-14 11:54:02, John Ogness wrote:
> It is expected that desc_read() will always set at least the
> @state_var field. However, if the descriptor is in an inconsistent
> state, no fields are set.
>
> Also, the second load of @state_var is not stored in @desc_out and
> so might not match the state value that is returned.
>
> Always set the last loaded @state_var into @desc_out, regardless of
> the descriptor consistency.
>
> Fixes: b6cf8b3f3312 ("printk: add lockless ringbuffer")
> Signed-off-by: John Ogness <john.ogness@linutronix.de>

Both patches are committed into printk/linux.git, branch printk-rework.

Best Regards,
Petr

\
 
 \ /
  Last update: 2020-09-15 18:18    [W:0.039 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site