diff options
author | David Howells <dhowells@redhat.com> | 2016-08-24 07:30:52 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-08-24 15:17:14 +0100 |
commit | 4d028b2c82991e2f9ae89ad90aeaaeb713495043 (patch) | |
tree | 6c94c0a36600d69bb4ed9928372d08f952529f93 /net/rxrpc/ar-internal.h | |
parent | df5d8bf70f64a2ee34234553eb215418dbc4c8f3 (diff) | |
download | lwn-4d028b2c82991e2f9ae89ad90aeaaeb713495043.tar.gz lwn-4d028b2c82991e2f9ae89ad90aeaaeb713495043.zip |
rxrpc: Dup the main conn list for the proc interface
The main connection list is used for two independent purposes: primarily it
is used to find connections to reap and secondarily it is used to list
connections in procfs.
Split the procfs list out from the reap list. This allows us to stop using
the reap list for client connections when they acquire a separate
management strategy from service collections.
The client connections will not be on a management single list, and sometimes
won't be on a management list at all. This doesn't leave them floating,
however, as they will also be on an rb-tree rooted on the socket so that the
socket can find them to dispatch calls.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/ar-internal.h')
-rw-r--r-- | net/rxrpc/ar-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h index 5292bf0bce52..2efbfba87cbe 100644 --- a/net/rxrpc/ar-internal.h +++ b/net/rxrpc/ar-internal.h @@ -310,6 +310,7 @@ struct rxrpc_connection { struct rb_node client_node; /* Node in local->client_conns */ struct rb_node service_node; /* Node in peer->service_conns */ }; + struct list_head proc_link; /* link in procfs list */ struct list_head link; /* link in master connection list */ struct sk_buff_head rx_queue; /* received conn-level packets */ const struct rxrpc_security *security; /* applied security module */ @@ -564,6 +565,7 @@ void rxrpc_reject_packets(struct rxrpc_local *); */ extern unsigned int rxrpc_connection_expiry; extern struct list_head rxrpc_connections; +extern struct list_head rxrpc_connection_proc_list; extern rwlock_t rxrpc_connection_lock; int rxrpc_extract_addr_from_skb(struct sockaddr_rxrpc *, struct sk_buff *); |