diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-06 17:43:01 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-08 05:55:11 +0300 |
commit | 669966bc94d82e614d894899328486613769f0c6 (patch) | |
tree | 157c6806b49c24e50554ee58e5e3074c81d0bead /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 422b5ae9c5e507f913118d086431c46022aa50c2 (diff) | |
download | linux-669966bc94d82e614d894899328486613769f0c6.tar.xz |
bonding: use exit_batch_rtnl() method
exit_batch_rtnl() is called while RTNL is held,
and devices to be unregistered can be queued in the dev_kill_list.
This saves one rtnl_lock()/rtnl_unlock() pair,
and one unregister_netdevice_many() call.
v2: Added bond_net_pre_exit() method to make sure bond_destroy_sysfs()
is called before we unregister the devices in bond_net_exit_batch_rtnl
(Antoine Tenart : https://lore.kernel.org/netdev/170688415193.5216.10499830272732622816@kwain/)
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Jay Vosburgh <j.vosburgh@gmail.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Reviewed-by: Antoine Tenart <atenart@kernel.org>
Link: https://lore.kernel.org/r/20240206144313.2050392-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions