diff options
| author | John Ogness <[email protected]> | 2021-03-03 10:15:22 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2021-03-08 10:43:18 +0000 |
| commit | 35b2b1634849ac19b2dd28cae6c97b64c4299830 (patch) | |
| tree | a50d1abcc135eaa16e9e59b1997329db92836d99 /lib/test_printf.c | |
| parent | printk: use seqcount_latch for clear_seq (diff) | |
| download | kernel-35b2b1634849ac19b2dd28cae6c97b64c4299830.tar.gz kernel-35b2b1634849ac19b2dd28cae6c97b64c4299830.zip | |
printk: use atomic64_t for devkmsg_user.seq
@user->seq is indirectly protected by @logbuf_lock. Once @logbuf_lock
is removed, @user->seq will be no longer safe from an atomicity point
of view.
In preparation for the removal of @logbuf_lock, change it to
atomic64_t to provide this safety.
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
