diff options
| author | Eric Dumazet <[email protected]> | 2023-08-02 13:14:59 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-08-03 17:58:24 +0000 |
| commit | d5d986ce42c71a7562d32c4e21e026b0f87befec (patch) | |
| tree | 9b4b6d9d2684efe9d5298e8b18d2958ca83d8613 /rust/helpers.c | |
| parent | tcp_metrics: annotate data-races around tm->tcpm_vals[] (diff) | |
| download | kernel-d5d986ce42c71a7562d32c4e21e026b0f87befec.tar.gz kernel-d5d986ce42c71a7562d32c4e21e026b0f87befec.zip | |
tcp_metrics: annotate data-races around tm->tcpm_net
tm->tcpm_net can be read or written locklessly.
Instead of changing write_pnet() and read_pnet() and potentially
hurt performance, add the needed READ_ONCE()/WRITE_ONCE()
in tm_net() and tcpm_new().
Fixes: 849e8a0ca8d5 ("tcp_metrics: Add a field tcpm_net and verify it matches on lookup")
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
