diff options
author | 2024-10-09 18:44:02 +0000 | |
---|---|---|
committer | 2024-10-11 15:35:05 -0700 | |
commit | 16207384d29287a19f81436e1953b41946aa8258 (patch) | |
tree | 8897a7e78e28b8662b52b75c20ca64b7e1c3fb33 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | fib: rules: use READ_ONCE()/WRITE_ONCE() on ops->fib_rules_seq (diff) | |
download | wireguard-linux-16207384d29287a19f81436e1953b41946aa8258.tar.xz wireguard-linux-16207384d29287a19f81436e1953b41946aa8258.zip |
ipv4: use READ_ONCE()/WRITE_ONCE() on net->ipv4.fib_seq
Using RTNL to protect ops->fib_rules_seq reads seems a big hammer.
Writes are protected by RTNL.
We can use READ_ONCE() when reading it.
Constify 'struct net' argument of fib4_rules_seq_read()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20241009184405.3752829-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions