diff options
author | David Howells <dhowells@redhat.com> | 2016-04-04 15:00:38 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-06-22 10:17:51 +0200 |
commit | 5627cc8b961e4b07d5d649d9bd01ac929dcc1a95 (patch) | |
tree | a56752e988d6e458623e5f1f660b4b95d195007f /net/rxrpc/call_object.c | |
parent | rxrpc: Make rxrpc_send_packet() take a connection not a transport (diff) | |
download | linux-5627cc8b961e4b07d5d649d9bd01ac929dcc1a95.tar.xz linux-5627cc8b961e4b07d5d649d9bd01ac929dcc1a95.zip |
rxrpc: Provide more refcount helper functions
Provide refcount helper functions for connections so that the code doesn't
touch local or connection usage counts directly.
Also make it such that local and peer put functions can take a NULL
pointer.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/call_object.c')
-rw-r--r-- | net/rxrpc/call_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/call_object.c b/net/rxrpc/call_object.c index d83f2cbb80a9..45849a66bc56 100644 --- a/net/rxrpc/call_object.c +++ b/net/rxrpc/call_object.c @@ -515,7 +515,7 @@ struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *rx, rb_insert_color(&call->conn_node, &conn->calls); conn->channels[call->channel] = call; sock_hold(&rx->sk); - atomic_inc(&conn->usage); + rxrpc_get_connection(conn); write_unlock_bh(&conn->lock); spin_lock(&conn->params.peer->lock); |