| Date | Wed, 19 Oct 2022 18:01:36 +0200 | From | Greg Kroah-Hartman <> | Subject | Re: [PATCH printk v2 04/38] printk: introduce console_is_enabled() wrapper |
| |
On Wed, Oct 19, 2022 at 05:01:26PM +0206, John Ogness wrote: > After switching to SRCU for console list iteration, some readers > will begin accessing console->flags as a data race. This is safe > because there is at most one CPU modifying console->flags and > using rmw operations. > > The primary reason for readers to access console->flags is to > check if the console is enabled. Introduce console_is_enabled() > to mark such access as a data race. > > Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|