]> git.hungrycats.org Git - linux/commit
net: defer netdev_name_node_alt_flush() call to netdev_run_todo()
authorEric Dumazet <edumazet@google.com>
Mon, 25 May 2026 08:35:39 +0000 (08:35 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 27 May 2026 02:20:15 +0000 (19:20 -0700)
commit00888feb601497a58ed363aae13be01b55d8a028
treec7ecd95ab35da76ca72ca49f4ae3d707068eae5a
parent73a7c8fb2302ae78920b210c098b752b9caa6bf6
net: defer netdev_name_node_alt_flush() call to netdev_run_todo()

In the following patch, we want to call rtnl_fill_prop_list() without
RTNL being held, but after a device reference was taken.

We need to free altnames in netdev_run_todo() instead of
unregister_netdevice_many_notify().

Freeing will only happen once all device references
have been released.

Note that dev->name_node serves as the anchor for altnames,
thus must be also freed in netdev_run_todo().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260525083542.1565964-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c