mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
rxrpc: trace: Don't use __builtin_return_address for rxrpc_local tracing
In rxrpc tracing, use enums to generate lists of points of interest rather than __builtin_return_address() for the rxrpc_local tracepoint Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org
This commit is contained in:
@@ -215,7 +215,7 @@ struct rxrpc_peer *rxrpc_alloc_peer(struct rxrpc_local *local, gfp_t gfp)
|
||||
peer = kzalloc(sizeof(struct rxrpc_peer), gfp);
|
||||
if (peer) {
|
||||
refcount_set(&peer->ref, 1);
|
||||
peer->local = rxrpc_get_local(local);
|
||||
peer->local = rxrpc_get_local(local, rxrpc_local_get_peer);
|
||||
INIT_HLIST_HEAD(&peer->error_targets);
|
||||
peer->service_conns = RB_ROOT;
|
||||
seqlock_init(&peer->service_conn_lock);
|
||||
@@ -294,7 +294,7 @@ static struct rxrpc_peer *rxrpc_create_peer(struct rxrpc_sock *rx,
|
||||
|
||||
static void rxrpc_free_peer(struct rxrpc_peer *peer)
|
||||
{
|
||||
rxrpc_put_local(peer->local);
|
||||
rxrpc_put_local(peer->local, rxrpc_local_put_peer);
|
||||
kfree_rcu(peer, rcu);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user