mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
net: shaper: add a comment why we don't need kfree_rcu() in flush
We keep getting misguided patches to fix the flush. Add a comment. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Link: https://patch.msgid.link/20260609183224.1108521-4-kuba@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
3500dfa6ff
commit
3b4ba57263
|
|
@ -1470,6 +1470,10 @@ static void net_shaper_flush(struct net_shaper_binding *binding)
|
|||
|
||||
xa_for_each(&hierarchy->shapers, index, cur) {
|
||||
xa_erase(&hierarchy->shapers, index);
|
||||
/* No need to use kfree_rcu(), netdev is already unpublished,
|
||||
* and synchronize_rcu() has been run as part of
|
||||
* unregister_netdevice().
|
||||
*/
|
||||
kfree(cur);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user