Lines Matching refs:othercon

89 	struct connection *othercon;  member
600 if (con->othercon && and_other) { in close_connection()
602 close_connection(con->othercon, false, true, true); in close_connection()
654 if (con->othercon) in dlm_tcp_shutdown()
655 shutdown_connection(con->othercon); in dlm_tcp_shutdown()
833 struct connection *othercon = newcon->othercon; in accept_from_sock() local
835 if (!othercon) { in accept_from_sock()
836 othercon = kzalloc(sizeof(*othercon), GFP_NOFS); in accept_from_sock()
837 if (!othercon) { in accept_from_sock()
844 othercon->rx_buflen = dlm_config.ci_buffer_size; in accept_from_sock()
845 othercon->rx_buf = kmalloc(othercon->rx_buflen, GFP_NOFS); in accept_from_sock()
846 if (!othercon->rx_buf) { in accept_from_sock()
848 kfree(othercon); in accept_from_sock()
854 othercon->nodeid = nodeid; in accept_from_sock()
855 othercon->rx_action = receive_from_sock; in accept_from_sock()
856 mutex_init(&othercon->sock_mutex); in accept_from_sock()
857 INIT_LIST_HEAD(&othercon->writequeue); in accept_from_sock()
858 spin_lock_init(&othercon->writequeue_lock); in accept_from_sock()
859 INIT_WORK(&othercon->swork, process_send_sockets); in accept_from_sock()
860 INIT_WORK(&othercon->rwork, process_recv_sockets); in accept_from_sock()
861 init_waitqueue_head(&othercon->shutdown_wait); in accept_from_sock()
862 set_bit(CF_IS_OTHERCON, &othercon->flags); in accept_from_sock()
865 close_connection(othercon, false, true, false); in accept_from_sock()
868 mutex_lock_nested(&othercon->sock_mutex, 2); in accept_from_sock()
869 newcon->othercon = othercon; in accept_from_sock()
870 add_sock(newsock, othercon); in accept_from_sock()
871 addcon = othercon; in accept_from_sock()
872 mutex_unlock(&othercon->sock_mutex); in accept_from_sock()
1587 if (con->othercon && and_other) in _stop_conn()
1588 _stop_conn(con->othercon, false); in _stop_conn()
1617 if (con->othercon) { in free_conn()
1618 clean_one_writequeue(con->othercon); in free_conn()
1619 call_rcu(&con->othercon->rcu, connection_release); in free_conn()
1644 if (con->othercon) { in work_flush()
1646 &con->othercon->flags); in work_flush()
1648 &con->othercon->flags); in work_flush()