Lines Matching defs:othercon
89 struct connection *othercon;
599 if (con->othercon && and_other) {
601 close_connection(con->othercon, false, tx, rx);
650 if (con->othercon)
651 shutdown_connection(con->othercon);
820 * In this case we store the incoming one in "othercon"
829 struct connection *othercon = newcon->othercon;
831 if (!othercon) {
832 othercon = kzalloc(sizeof(*othercon), GFP_NOFS);
833 if (!othercon) {
840 othercon->rx_buflen = dlm_config.ci_buffer_size;
841 othercon->rx_buf = kmalloc(othercon->rx_buflen, GFP_NOFS);
842 if (!othercon->rx_buf) {
844 kfree(othercon);
850 othercon->nodeid = nodeid;
851 othercon->rx_action = receive_from_sock;
852 mutex_init(&othercon->sock_mutex);
853 INIT_LIST_HEAD(&othercon->writequeue);
854 spin_lock_init(&othercon->writequeue_lock);
855 INIT_WORK(&othercon->swork, process_send_sockets);
856 INIT_WORK(&othercon->rwork, process_recv_sockets);
857 init_waitqueue_head(&othercon->shutdown_wait);
858 set_bit(CF_IS_OTHERCON, &othercon->flags);
861 close_connection(othercon, false, true, false);
864 mutex_lock_nested(&othercon->sock_mutex, 2);
865 newcon->othercon = othercon;
866 add_sock(newsock, othercon);
867 addcon = othercon;
868 mutex_unlock(&othercon->sock_mutex);
1583 if (con->othercon && and_other)
1584 _stop_conn(con->othercon, false);
1613 if (con->othercon) {
1614 clean_one_writequeue(con->othercon);
1615 call_rcu(&con->othercon->rcu, connection_release);
1640 if (con->othercon) {
1642 &con->othercon->flags);
1644 &con->othercon->flags);