diff options
author | Eric Dumazet <edumazet@google.com> | 2024-04-16 17:07:39 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-18 04:30:28 +0300 |
commit | 1514b06aff1681a418089060f0ebe936c27481bc (patch) | |
tree | 5956a0d8af59e101b83d467a28cc096d1c8670bd /net/unix/sysctl_net_unix.c | |
parent | 860a9bed265146b10311bcadbbcef59c3af4454d (diff) | |
download | linux-1514b06aff1681a418089060f0ebe936c27481bc.tar.xz |
netns: no longer hold RTNL in rtnl_net_dumpid()
- rtnl_net_dumpid() is already fully RCU protected,
RTNL is not needed there.
- Fix return value at the end of a dump,
so that NLMSG_DONE can be appended to current skb,
saving one recvmsg() system call.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Link: https://lore.kernel.org/r/20240416140739.967941-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions