Skip to content

Commit

Permalink
rxrpc: Add missing "new peer" trace
Browse files Browse the repository at this point in the history
There was supposed to be a trace indicating that a new peer had been
created.  Add it.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David Howells authored and David S. Miller committed Oct 4, 2019
1 parent 97bfe0e commit 033b2c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/rxrpc/peer_object.c
Original file line number Diff line number Diff line change
@@ -209,6 +209,7 @@ static void rxrpc_assess_MTU_size(struct rxrpc_sock *rx,
*/
struct rxrpc_peer *rxrpc_alloc_peer(struct rxrpc_local *local, gfp_t gfp)
{
const void *here = __builtin_return_address(0);
struct rxrpc_peer *peer;

_enter("");
@@ -230,6 +231,7 @@ struct rxrpc_peer *rxrpc_alloc_peer(struct rxrpc_local *local, gfp_t gfp)
peer->cong_cwnd = 3;
else
peer->cong_cwnd = 4;
trace_rxrpc_peer(peer, rxrpc_peer_new, 1, here);
}

_leave(" = %p", peer);

0 comments on commit 033b2c7

Please sign in to comment.