diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2025-07-02 16:01:31 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-08 18:32:39 -0700 |
| commit | eb1ac9ff6c4a5720b1a1476233be374c5dc44bff (patch) | |
| tree | 0aec0ddcc7428bbc438e572b0bab7eb9e76f1562 /drivers/usb/cdns3/cdns3-trace.c | |
| parent | ipv6: anycast: Unify two error paths in ipv6_sock_ac_join(). (diff) | |
| download | linux-eb1ac9ff6c4a5720b1a1476233be374c5dc44bff.tar.gz linux-eb1ac9ff6c4a5720b1a1476233be374c5dc44bff.zip | |
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>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions
