bonding: switch bond_net_exit() to batch mode
authorEric Dumazet <edumazet@google.com>
Tue, 8 Feb 2022 04:50:37 +0000 (20:50 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Feb 2022 04:41:35 +0000 (20:41 -0800)
commit16a41634accacb2b3eee3580a0aef2da0f15aabd
tree7b01f61ba8622b34d1aaf164e1a5dd3787100da3
parentef0de6696c38cbefba64fc1e29c18882bac1f747
bonding: switch bond_net_exit() to batch mode

cleanup_net() is competing with other rtnl users.

Batching bond_net_exit() factorizes all rtnl acquistions
to a single one, giving chance for cleanup_net()
to progress much faster, holding rtnl a bit longer.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jay Vosburgh <j.vosburgh@gmail.com>
Cc: Veaceslav Falico <vfalico@gmail.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_procfs.c