mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
net: allow out-of-order netdev unregistration
Sprinkle for each loops to allow netdevices to be unregistered out of order, as their refs are released. This prevents problems caused by dependencies between netdevs which want to release references in their ->priv_destructor. See commitd6ff94afd9("vlan: move dev_put into vlan_dev_uninit") for example. Eric has removed the only known ordering requirement in commitc002496bab("Merge branch 'ipv6-loopback'") so let's try this and see if anything explodes... Reviewed-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Xin Long <lucien.xin@gmail.com> Link: https://lore.kernel.org/r/20220215225310.3679266-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ae68db14b6
commit
faab39f63c
1 changed files with 37 additions and 27 deletions
Loading…
Add table
Add a link
Reference in a new issue