]> git.dujemihanovic.xyz Git - linux.git/commit
phonet: no longer hold RTNL in route_dumpit()
authorEric Dumazet <edumazet@google.com>
Tue, 7 May 2024 12:17:48 +0000 (12:17 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 May 2024 01:54:50 +0000 (18:54 -0700)
commit58a4ff5d77b187086eb12d41d613749420947f19
tree4e20f193b23b17bdaccc9b940c77f4214b59c56b
parent8d8b1a422c4644891e1f8a3ea10b544b65cd0cc6
phonet: no longer hold RTNL in route_dumpit()

route_dumpit() already relies on RCU, RTNL is not needed.

Also change return value at the end of a dump.
This allows NLMSG_DONE to be appended to the current
skb at the end of a dump, saving a couple of recvmsg()
system calls.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Remi Denis-Courmont <courmisch@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240507121748.416287-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/phonet/pn_netlink.c