rxrpc: Fix trace string
authorDavid Howells <dhowells@redhat.com>
Mon, 19 Dec 2022 14:22:12 +0000 (14:22 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 30 Jan 2023 14:13:29 +0000 (14:13 +0000)
Fix a trace string to indicate that it's discarding the local endpoint for
a preallocated peer, not a preallocated connection.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org

include/trace/events/rxrpc.h
net/rxrpc/call_accept.c

index 283db0ea3db4b37edda6c81f3c84213dc79d577c..31524d605319fb3f27f0240452a3de89a66d34e6 100644 (file)
        EM(rxrpc_local_put_for_use,             "PUT for-use ") \
        EM(rxrpc_local_put_kill_conn,           "PUT conn-kil") \
        EM(rxrpc_local_put_peer,                "PUT peer    ") \
-       EM(rxrpc_local_put_prealloc_conn,       "PUT conn-pre") \
+       EM(rxrpc_local_put_prealloc_peer,       "PUT peer-pre") \
        EM(rxrpc_local_put_release_sock,        "PUT rel-sock") \
        EM(rxrpc_local_stop,                    "STOP        ") \
        EM(rxrpc_local_stopped,                 "STOPPED     ") \
index 3e8689fdc437146fee49fc611d4fdec2530b18b6..0f5a1d77b890f83d61edf3b47bf8d5d7a420135e 100644 (file)
@@ -195,7 +195,7 @@ void rxrpc_discard_prealloc(struct rxrpc_sock *rx)
        tail = b->peer_backlog_tail;
        while (CIRC_CNT(head, tail, size) > 0) {
                struct rxrpc_peer *peer = b->peer_backlog[tail];
-               rxrpc_put_local(peer->local, rxrpc_local_put_prealloc_conn);
+               rxrpc_put_local(peer->local, rxrpc_local_put_prealloc_peer);
                kfree(peer);
                tail = (tail + 1) & (size - 1);
        }