]> git.ipfire.org Git - people/ms/linux.git/blobdiff - net/rxrpc/call_accept.c
rxrpc: Use refcount_t rather than atomic_t
[people/ms/linux.git] / net / rxrpc / call_accept.c
index 1ae90fb979362b8a585b5a5f984de91ba871220e..8ae59edc25510a4cf6087ad23a0a2edc666590e6 100644 (file)
@@ -91,7 +91,7 @@ static int rxrpc_service_prealloc_one(struct rxrpc_sock *rx,
                                  (head + 1) & (size - 1));
 
                trace_rxrpc_conn(conn->debug_id, rxrpc_conn_new_service,
-                                atomic_read(&conn->usage), here);
+                                refcount_read(&conn->ref), here);
        }
 
        /* Now it gets complicated, because calls get registered with the
@@ -104,7 +104,7 @@ static int rxrpc_service_prealloc_one(struct rxrpc_sock *rx,
        call->state = RXRPC_CALL_SERVER_PREALLOC;
 
        trace_rxrpc_call(call->debug_id, rxrpc_call_new_service,
-                        atomic_read(&call->usage),
+                        refcount_read(&call->ref),
                         here, (const void *)user_call_ID);
 
        write_lock(&rx->call_lock);