]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Allow list of in-use local UDP endpoints to be viewed in /proc
authorDavid Howells <dhowells@redhat.com>
Sat, 21 May 2022 07:45:15 +0000 (08:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 20:03:01 +0000 (21:03 +0100)
commita9d9c2cc244924c4871a81274e5e5cd331e25846
tree92c5f3666a6efccdcdfac23499bf293547e5724b
parentb22c9f7a3a9c12cc42da76b2b4b08aba6ea52f53
rxrpc: Allow list of in-use local UDP endpoints to be viewed in /proc

Allow the list of in-use local UDP endpoints in the current network
namespace to be viewed in /proc.

To aid with this, the endpoint list is converted to an hlist and RCU-safe
manipulation is used so that the list can be read with only the RCU
read lock held.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/ar-internal.h
net/rxrpc/local_object.c
net/rxrpc/net_ns.c
net/rxrpc/proc.c