diff options
author | David Howells <dhowells@redhat.com> | 2016-08-24 08:30:52 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-08-24 16:17:14 +0200 |
commit | 4d028b2c82991e2f9ae89ad90aeaaeb713495043 (patch) | |
tree | 6c94c0a36600d69bb4ed9928372d08f952529f93 /net/rxrpc/conn_service.c | |
parent | rxrpc: Make /proc/net/rxrpc_calls safer (diff) | |
download | linux-4d028b2c82991e2f9ae89ad90aeaaeb713495043.tar.xz linux-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/conn_service.c')
-rw-r--r-- | net/rxrpc/conn_service.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rxrpc/conn_service.c b/net/rxrpc/conn_service.c index fd9027ccba8f..6ad6ae926cc3 100644 --- a/net/rxrpc/conn_service.c +++ b/net/rxrpc/conn_service.c @@ -187,6 +187,7 @@ struct rxrpc_connection *rxrpc_incoming_connection(struct rxrpc_local *local, write_lock(&rxrpc_connection_lock); list_add_tail(&conn->link, &rxrpc_connections); + list_add_tail(&conn->proc_link, &rxrpc_connection_proc_list); write_unlock(&rxrpc_connection_lock); /* Make the connection a target for incoming packets. */ |