diff options
author | David Howells <dhowells@redhat.com> | 2016-08-30 09:49:29 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-08-30 16:02:36 +0100 |
commit | e34d4234b0b77a8a8b6dd7cf29aff468c288d9e4 (patch) | |
tree | c76b81204bb3b7e0294dc688a2f7ff0f970b83ad /net/rxrpc/call_accept.c | |
parent | f5c17aaeb2aee9b6c30d082bbe652a7e5589adff (diff) | |
download | op-kernel-dev-e34d4234b0b77a8a8b6dd7cf29aff468c288d9e4.zip op-kernel-dev-e34d4234b0b77a8a8b6dd7cf29aff468c288d9e4.tar.gz |
rxrpc: Trace rxrpc_call usage
Add a trace event for debuging rxrpc_call struct usage.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/call_accept.c')
-rw-r--r-- | net/rxrpc/call_accept.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/rxrpc/call_accept.c b/net/rxrpc/call_accept.c index ef9ef0d..03af88f 100644 --- a/net/rxrpc/call_accept.c +++ b/net/rxrpc/call_accept.c @@ -129,8 +129,7 @@ static int rxrpc_accept_incoming_call(struct rxrpc_local *local, _debug("conn ready"); call->state = RXRPC_CALL_SERVER_ACCEPTING; list_add_tail(&call->accept_link, &rx->acceptq); - rxrpc_get_call(call); - atomic_inc(&call->skb_count); + rxrpc_get_call_for_skb(call, notification); nsp = rxrpc_skb(notification); nsp->call = call; @@ -323,6 +322,7 @@ struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *rx, call = list_entry(rx->acceptq.next, struct rxrpc_call, accept_link); list_del_init(&call->accept_link); sk_acceptq_removed(&rx->sk); + rxrpc_see_call(call); write_lock_bh(&call->state_lock); switch (call->state) { @@ -395,6 +395,7 @@ int rxrpc_reject_call(struct rxrpc_sock *rx) call = list_entry(rx->acceptq.next, struct rxrpc_call, accept_link); list_del_init(&call->accept_link); sk_acceptq_removed(&rx->sk); + rxrpc_see_call(call); write_lock_bh(&call->state_lock); switch (call->state) { |