Files
linux-stable-mirror/include/linux
Kuniyuki IwashimaandJakub Kicinski eb1ac9ff6c ipv6: anycast: Don't hold RTNL for IPV6_JOIN_ANYCAST.
inet6_sk(sk)->ipv6_ac_list is protected by lock_sock().

In ipv6_sock_ac_join(), only __dev_get_by_index(), __dev_get_by_flags(),
and __in6_dev_get() require RTNL.

__dev_get_by_flags() is only used by ipv6_sock_ac_join() and can be
converted to RCU version.

Let's replace RCU version helper and drop RTNL from IPV6_JOIN_ANYCAST.

setsockopt_needs_rtnl() will be removed in the next patch.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250702230210.3115355-15-kuni1840@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-08 18:32:39 -07:00
..
2025-05-19 08:17:08 -07:00
2025-05-21 13:41:03 +02:00
2025-05-21 13:39:45 +02:00
2025-05-20 05:34:27 +02:00
2025-06-27 16:38:02 -07:00
2025-05-15 20:24:40 +02:00
2025-05-22 11:07:05 +02:00
2025-06-17 18:18:46 -07:00
2025-06-11 11:57:14 -07:00
2025-06-17 18:18:46 -07:00
2025-06-04 09:51:10 +02:00
2025-05-21 16:46:37 +02:00
2025-07-08 08:37:15 -07:00