diff options
| author | John Ogness <[email protected]> | 2021-03-03 10:15:21 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2021-03-08 10:43:15 +0000 |
| commit | 7d7a23a91c915f6a90b2a636b130c53e0fe5154c (patch) | |
| tree | f588998ccde75f23e1044f5fc636d134d9718c05 /lib/test_printf.c | |
| parent | printk: introduce CONSOLE_LOG_MAX (diff) | |
| download | kernel-7d7a23a91c915f6a90b2a636b130c53e0fe5154c.tar.gz kernel-7d7a23a91c915f6a90b2a636b130c53e0fe5154c.zip | |
printk: use seqcount_latch for clear_seq
kmsg_dump_rewind_nolock() locklessly reads @clear_seq. However,
this is not done atomically. Since @clear_seq is 64-bit, this
cannot be an atomic operation for all platforms. Therefore, use
a seqcount_latch to allow readers to always read a consistent
value.
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_printf.c')
0 files changed, 0 insertions, 0 deletions
