]> www.infradead.org Git - users/dwmw2/linux.git/commit
ipv4: remove fib_info_lock
authorEric Dumazet <edumazet@google.com>
Fri, 4 Oct 2024 13:47:19 +0000 (13:47 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Oct 2024 23:38:58 +0000 (16:38 -0700)
commit143ca845ec0c625c410768c36e1a949ef4ed1915
treed0fb78fa33d6a2a7f16917f8cc53b8b5b2637713
parentfc38b28365e5f1396209d2878a34065468765087
ipv4: remove fib_info_lock

After the prior patch, fib_info_lock became redundant
because all of its users are holding RTNL.

BH protection is not needed.

Remove the READ_ONCE()/WRITE_ONCE() annotations around fib_info_cnt,
since it is protected by RTNL.

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/20241004134720.579244-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/fib_semantics.c