]> www.infradead.org Git - users/dwmw2/linux.git/commit
phonet: Don't hold RTNL for addr_doit().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Thu, 17 Oct 2024 18:31:35 +0000 (11:31 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 24 Oct 2024 14:03:40 +0000 (16:03 +0200)
commit8786e98dd0ebb8ab3adfddd3517f3505c3a61c23
tree31a44983b2a903b523c6936bccbf906c01533f4d
parent42f5fe1dc4babad1c49bcc4121983fffccee3cd9
phonet: Don't hold RTNL for addr_doit().

Now only __dev_get_by_index() depends on RTNL in addr_doit().

Let's use dev_get_by_index_rcu() and register addr_doit() with
RTNL_FLAG_DOIT_UNLOCKED.

While at it, I changed phonet_rtnl_msg_handlers[]'s init to C99
style like other core networking code.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/phonet/pn_netlink.c