conn_service.c (58e16d792a6a8c6b750f637a4649967fcac853dc) conn_service.c (4c1295dccc0afe0905b6ca4c62ade7f2406f2cfb)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* Service connection management
3 *
4 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
6 */
7
8#include <linux/slab.h>

--- 120 unchanged lines hidden (view full) ---

129 atomic_set(&conn->usage, 2);
130
131 atomic_inc(&rxnet->nr_conns);
132 write_lock(&rxnet->conn_lock);
133 list_add_tail(&conn->link, &rxnet->service_conns);
134 list_add_tail(&conn->proc_link, &rxnet->conn_proc_list);
135 write_unlock(&rxnet->conn_lock);
136
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* Service connection management
3 *
4 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
6 */
7
8#include <linux/slab.h>

--- 120 unchanged lines hidden (view full) ---

129 atomic_set(&conn->usage, 2);
130
131 atomic_inc(&rxnet->nr_conns);
132 write_lock(&rxnet->conn_lock);
133 list_add_tail(&conn->link, &rxnet->service_conns);
134 list_add_tail(&conn->proc_link, &rxnet->conn_proc_list);
135 write_unlock(&rxnet->conn_lock);
136
137 trace_rxrpc_conn(conn, rxrpc_conn_new_service,
137 trace_rxrpc_conn(conn->debug_id, rxrpc_conn_new_service,
138 atomic_read(&conn->usage),
139 __builtin_return_address(0));
140 }
141
142 return conn;
143}
144
145/*

--- 49 unchanged lines hidden ---
138 atomic_read(&conn->usage),
139 __builtin_return_address(0));
140 }
141
142 return conn;
143}
144
145/*

--- 49 unchanged lines hidden ---