]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ipv6: mcast: remove one synchronize_net() barrier in ipv6_mc_down()
authorEric Dumazet <edumazet@google.com>
Fri, 9 Feb 2024 15:30:56 +0000 (15:30 +0000)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:21:19 +0000 (18:21 -0400)
[ Upstream commit 17ef8efc00b34918b966388b2af0993811895a8c ]

As discussed in the past (commit 2d3916f31891 ("ipv6: fix skb drops
in igmp6_event_query() and igmp6_event_report()")) I think the
synchronize_net() call in ipv6_mc_down() is not needed.

Under load, synchronize_net() can last between 200 usec and 5 ms.

KASAN seems to agree as well.

Fixes: f185de28d9ae ("mld: add new workqueues for process mld events")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Taehee Yoo <ap420073@gmail.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/mcast.c

index 0ea7d97cdc02509141f607e3e9937f967cbd31e3..6e5d1ade48a89ff52e3307bd1f8982305e2868e0 100644 (file)
@@ -2722,7 +2722,6 @@ void ipv6_mc_down(struct inet6_dev *idev)
        /* Should stop work after group drop. or we will
         * start work again in mld_ifc_event()
         */
-       synchronize_net();
        mld_query_stop_work(idev);
        mld_report_stop_work(idev);