diff options
author | David Howells <dhowells@redhat.com> | 2016-09-08 12:10:11 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-08 12:10:11 +0200 |
commit | de8d6c7401ae8f25db3788804c86887ad7347bee (patch) | |
tree | 350b339d5c533cddb0610a77dec521bb422c2bd4 /net/rxrpc/call_accept.c | |
parent | rxrpc: Update protocol definitions slightly (diff) | |
download | linux-de8d6c7401ae8f25db3788804c86887ad7347bee.tar.xz linux-de8d6c7401ae8f25db3788804c86887ad7347bee.zip |
rxrpc: Convert rxrpc_local::services to an hlist
Convert the rxrpc_local::services list to an hlist so that it can be
accessed under RCU conditions more readily.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/call_accept.c')
-rw-r--r-- | net/rxrpc/call_accept.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/call_accept.c b/net/rxrpc/call_accept.c index 879a964de80c..4c71efcf82ed 100644 --- a/net/rxrpc/call_accept.c +++ b/net/rxrpc/call_accept.c @@ -217,7 +217,7 @@ void rxrpc_accept_incoming_calls(struct rxrpc_local *local) /* get the socket providing the service */ read_lock_bh(&local->services_lock); - list_for_each_entry(rx, &local->services, listen_link) { + hlist_for_each_entry(rx, &local->services, listen_link) { if (rx->srx.srx_service == sp->hdr.serviceId && rx->sk.sk_state != RXRPC_CLOSE) goto found_service; |