summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-05-07 16:20:00 +0300
committerJakub Kicinski <kuba@kernel.org>2024-05-09 04:49:51 +0300
commit3b09b2bd0d62de1f359b0c130570711c99c5e80b (patch)
tree837ac235d524bf12bbf53e270e0f546f907e637f /include/net
parente497c3228a4e09cdc956f19200ee1d9e84b63f96 (diff)
downloadlinux-3b09b2bd0d62de1f359b0c130570711c99c5e80b.tar.xz
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')
-rw-r--r--include/net/dst_cache.h2
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);
}
/**