diff options
author | David Howells | 2016-06-27 11:32:02 +0200 |
---|---|---|
committer | David Howells | 2016-07-06 11:43:51 +0200 |
commit | eb9b9d22754d1926771a22638e81384d517c6ce5 (patch) | |
tree | bcb597115cd3184ccc31e896956ff310d180ed85 /net/rxrpc/ar-internal.h | |
parent | rxrpc: Turn connection #defines into enums and put outside struct def (diff) | |
download | kernel-qcow2-linux-eb9b9d22754d1926771a22638e81384d517c6ce5.tar.gz kernel-qcow2-linux-eb9b9d22754d1926771a22638e81384d517c6ce5.tar.xz kernel-qcow2-linux-eb9b9d22754d1926771a22638e81384d517c6ce5.zip |
rxrpc: Check that the client conns cache is empty before module removal
Check that the client conns cache is empty before module removal and bug if
not, listing any offending connections that are still present. Unfortunately,
if there are connections still around, then the transport socket is still
unexpectedly open and active, so we can't just unallocate the connections.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/ar-internal.h')
-rw-r--r-- | net/rxrpc/ar-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h index 3f0d0479a4da..6583a8399c89 100644 --- a/net/rxrpc/ar-internal.h +++ b/net/rxrpc/ar-internal.h @@ -541,6 +541,7 @@ extern struct idr rxrpc_client_conn_ids; int rxrpc_get_client_connection_id(struct rxrpc_connection *, gfp_t); void rxrpc_put_client_connection_id(struct rxrpc_connection *); +void rxrpc_destroy_client_conn_ids(void); /* * conn_event.c |