diff options
author | David Howells <dhowells@redhat.com> | 2017-01-05 11:38:36 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-01-09 12:10:02 +0100 |
commit | 210f035316f545e6f507e7d61e191495ba983e27 (patch) | |
tree | 2e8a73099c2adf217251136bad50a8ec4bac840b /net/rxrpc/ar-internal.h | |
parent | afs: Kill afs_wait_mode (diff) | |
download | linux-210f035316f545e6f507e7d61e191495ba983e27.tar.xz linux-210f035316f545e6f507e7d61e191495ba983e27.zip |
rxrpc: Allow listen(sock, 0) to be used to disable listening
Allow listen() with a backlog of 0 to be used to disable listening on an
AF_RXRPC socket. This also releases any preallocation, thereby making it
easier for a kernel service to account for all allocated call structures
when shutting down the service.
The socket cannot thereafter have listening reenabled, but must rather be
closed and reopened.
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 84927c7b5fdf..12be432be9b2 100644 --- a/net/rxrpc/ar-internal.h +++ b/net/rxrpc/ar-internal.h @@ -60,6 +60,7 @@ enum { RXRPC_CLIENT_BOUND, /* client local address bound */ RXRPC_SERVER_BOUND, /* server local address bound */ RXRPC_SERVER_LISTENING, /* server listening for connections */ + RXRPC_SERVER_LISTEN_DISABLED, /* server listening disabled */ RXRPC_CLOSE, /* socket is being closed */ }; |