diff options
author | Eric Dumazet <edumazet@google.com> | 2024-05-07 15:20:00 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-09 03:49:51 +0200 |
commit | 3b09b2bd0d62de1f359b0c130570711c99c5e80b (patch) | |
tree | 837ac235d524bf12bbf53e270e0f546f907e637f /include/net/dst_cache.h | |
parent | netlink/specs: Add VF attributes to rt_link spec (diff) | |
download | linux-3b09b2bd0d62de1f359b0c130570711c99c5e80b.tar.xz linux-3b09b2bd0d62de1f359b0c130570711c99c5e80b.zip |
net: dst_cache: annotate data-races around dst_cache->reset_ts
dst_cache->reset_ts is read or written locklessly,
add READ_ONCE() and WRITE_ONCE() annotations.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/20240507132000.614591-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/dst_cache.h')
-rw-r--r-- | include/net/dst_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dst_cache.h b/include/net/dst_cache.h index df6622a5fe98..b4a55d2d5e71 100644 --- a/include/net/dst_cache.h +++ b/include/net/dst_cache.h @@ -76,7 +76,7 @@ struct dst_entry *dst_cache_get_ip6(struct dst_cache *dst_cache, */ static inline void dst_cache_reset(struct dst_cache *dst_cache) { - dst_cache->reset_ts = jiffies; + WRITE_ONCE(dst_cache->reset_ts, jiffies); } /** |