Lines Matching refs:lc
137 struct rds_loop_connection *lc; in rds_loop_conn_alloc() local
140 lc = kzalloc(sizeof(struct rds_loop_connection), gfp); in rds_loop_conn_alloc()
141 if (!lc) in rds_loop_conn_alloc()
144 INIT_LIST_HEAD(&lc->loop_node); in rds_loop_conn_alloc()
145 lc->conn = conn; in rds_loop_conn_alloc()
146 conn->c_transport_data = lc; in rds_loop_conn_alloc()
149 list_add_tail(&lc->loop_node, &loop_conns); in rds_loop_conn_alloc()
157 struct rds_loop_connection *lc = arg; in rds_loop_conn_free() local
160 rdsdebug("lc %p\n", lc); in rds_loop_conn_free()
162 list_del(&lc->loop_node); in rds_loop_conn_free()
164 kfree(lc); in rds_loop_conn_free()
179 struct rds_loop_connection *lc, *_lc; in rds_loop_exit() local
190 list_for_each_entry_safe(lc, _lc, &tmp_list, loop_node) { in rds_loop_exit()
191 WARN_ON(lc->conn->c_passive); in rds_loop_exit()
192 rds_conn_destroy(lc->conn); in rds_loop_exit()
198 struct rds_loop_connection *lc, *_lc; in rds_loop_kill_conns() local
202 list_for_each_entry_safe(lc, _lc, &loop_conns, loop_node) { in rds_loop_kill_conns()
203 struct net *c_net = read_pnet(&lc->conn->c_net); in rds_loop_kill_conns()
207 list_move_tail(&lc->loop_node, &tmp_list); in rds_loop_kill_conns()
211 list_for_each_entry_safe(lc, _lc, &tmp_list, loop_node) { in rds_loop_kill_conns()
212 WARN_ON(lc->conn->c_passive); in rds_loop_kill_conns()
213 rds_conn_destroy(lc->conn); in rds_loop_kill_conns()