]> git.ipfire.org Git - thirdparty/linux.git/commit
Merge branch 'ipv4-fib-remove-rtnl-in-fib_net_exit_batch'
authorJakub Kicinski <kuba@kernel.org>
Mon, 15 Jun 2026 18:49:31 +0000 (11:49 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jun 2026 18:49:31 +0000 (11:49 -0700)
commitb712e0200fc2ec3fc597ec0f6f278e9b4273bbd1
treed70e3ba5c6fc2f63858d14d28018c468a52966e6
parente3d202a1ed7c37c3c936d5eeb3abc3a7a713cb95
parent759923cf03b062b5b8cdc770e2819a67ebe1cacd
Merge branch 'ipv4-fib-remove-rtnl-in-fib_net_exit_batch'

Kuniyuki Iwashima says:

====================
ipv4: fib: Remove RTNL in fib_net_exit_batch().

Currently, we flush all IPv4 routes at ->exit_batch() during
netns dismantle, which requires an extra RTNL.

IPv4 routes are not added from the fast path unlike IPv6, so
we can flush routes before default_device_exit_batch().

However, there is implicit ordering between ip_fib_net_exit()
and default_device_exit_batch().

This series detangles it and moves ip_fib_net_exit() to
 ->exit_rtnl() to save the RTNL dance.

The same change for IPv6 will need more work.
====================

Link: https://patch.msgid.link/20260612063225.455191-1-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>