diff options
author | John Ogness <[email protected]> | 2021-03-03 11:15:23 +0100 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2021-03-08 11:43:20 +0100 |
commit | 636babdc06961f173696cb664550b4cc239dde2e (patch) | |
tree | 470388fb57098441f2ab5496945656cdda10357a /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 35b2b1634849ac19b2dd28cae6c97b64c4299830 (diff) |
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 <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions