]> www.infradead.org Git - users/dwmw2/linux.git/commit
rtnetlink: move rtnl_lock handling out of af_netlink
authorJakub Kicinski <kuba@kernel.org>
Thu, 6 Jun 2024 19:29:05 +0000 (12:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2024 12:15:40 +0000 (13:15 +0100)
commit5380d64f8d766576ac5c0f627418b2d0e1d2641f
tree077f525dd88346190af4fe3eea504b5c0da8ba3e
parentc917b26e1686b99f18a3c9fbce508a7c264c6706
rtnetlink: move rtnl_lock handling out of af_netlink

Now that we have an intermediate layer of code for handling
rtnl-level netlink dump quirks, we can move the rtnl_lock
taking there.

For dump handlers with RTNL_FLAG_DUMP_SPLIT_NLM_DONE we can
avoid taking rtnl_lock just to generate NLM_DONE, once again.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c
net/netlink/af_netlink.c