aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2023-08-02 13:14:58 +0000
committerJakub Kicinski <[email protected]>2023-08-03 17:58:24 +0000
commit8c4d04f6b443869d25e59822f7cec88d647028a9 (patch)
treee6f680d01cd1850c178a1f308da251bb383258a3 /rust/helpers.c
parenttcp_metrics: annotate data-races around tm->tcpm_lock (diff)
downloadkernel-8c4d04f6b443869d25e59822f7cec88d647028a9.tar.gz
kernel-8c4d04f6b443869d25e59822f7cec88d647028a9.zip
tcp_metrics: annotate data-races around tm->tcpm_vals[]
tm->tcpm_vals[] values can be read or written locklessly. Add needed READ_ONCE()/WRITE_ONCE() to document this, and force use of tcp_metric_get() and tcp_metric_set() Fixes: 51c5d0c4b169 ("tcp: Maintain dynamic metrics in local cache.") Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: David Ahern <[email protected]> Reviewed-by: Kuniyuki Iwashima <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions