diff options
author | John Ogness <john.ogness@linutronix.de> | 2021-03-03 11:15:23 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2021-03-08 11:43:20 +0100 |
commit | 636babdc06961f173696cb664550b4cc239dde2e (patch) | |
tree | 470388fb57098441f2ab5496945656cdda10357a /arch | |
parent | 35b2b1634849ac19b2dd28cae6c97b64c4299830 (diff) | |
download | linux-636babdc06961f173696cb664550b4cc239dde2e.tar.bz2 |
printk: add syslog_lock
The global variables @syslog_seq, @syslog_partial, @syslog_time
and write access to @clear_seq are protected by @logbuf_lock.
Once @logbuf_lock is removed, these variables will need their
own synchronization method. Introduce @syslog_lock for this
purpose.
@syslog_lock is a raw_spin_lock for now. This simplifies the
transition to removing @logbuf_lock. Once @logbuf_lock and the
safe buffers are removed, @syslog_lock can change to spin_lock.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210303101528.29901-11-john.ogness@linutronix.de
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions