On 6/24/25 10:24 PM, Kuniyuki Iwashima wrote:
From: Kuniyuki Iwashima <kuniyu@google.com>
This is a prep series for RCU conversion of RTM_NEWNEIGH, which needs
RTNL during neigh_table.{pconstructor,pdestructor}() touching IPv6
multicast code.
Currently, IPv6 multicast code is protected by lock_sock() and
inet6_dev->mc_lock, and RTNL is not actually needed.
In addition, anycast code is also in the same situation and does not
need RTNL at all.
This series removes RTNL from net/ipv6/{mcast.c,anycast.c} and finally
removes setsockopt_needs_rtnl() from do_ipv6_setsockopt().
I went through the whole series I could not find any obvious bug.
Still this is not trivial matter and I recently missed bugs in similar
changes, so let me keep the series in PW for a little longer, just in
case some other pair of eyes would go over it ;)
BTW @Kuniyuki: do you have a somewhat public todo list that others could
peek at to join this effort?
Thanks!
Paolo