Lines Matching refs:othercon
91 struct connection *othercon; member
794 if (con->othercon && and_other) { in close_connection()
796 close_connection(con->othercon, false, tx, rx); in close_connection()
870 if (con->othercon) in dlm_tcp_shutdown()
871 shutdown_connection(con->othercon); in dlm_tcp_shutdown()
1043 struct connection *othercon = newcon->othercon; in accept_from_sock() local
1045 if (!othercon) { in accept_from_sock()
1046 othercon = kzalloc(sizeof(*othercon), GFP_NOFS); in accept_from_sock()
1047 if (!othercon) { in accept_from_sock()
1055 result = dlm_con_init(othercon, nodeid); in accept_from_sock()
1057 kfree(othercon); in accept_from_sock()
1063 lockdep_set_subclass(&othercon->sock_mutex, 1); in accept_from_sock()
1064 set_bit(CF_IS_OTHERCON, &othercon->flags); in accept_from_sock()
1065 newcon->othercon = othercon; in accept_from_sock()
1066 othercon->sendcon = newcon; in accept_from_sock()
1069 close_connection(othercon, false, true, false); in accept_from_sock()
1072 mutex_lock(&othercon->sock_mutex); in accept_from_sock()
1073 add_sock(newsock, othercon); in accept_from_sock()
1074 addcon = othercon; in accept_from_sock()
1075 mutex_unlock(&othercon->sock_mutex); in accept_from_sock()
1490 if (con->othercon) in dlm_lowcomms_close()
1491 clean_one_writequeue(con->othercon); in dlm_lowcomms_close()
1687 if (con->othercon && and_other) in _stop_conn()
1688 _stop_conn(con->othercon, false); in _stop_conn()
1711 if (con->othercon) { in free_conn()
1712 clean_one_writequeue(con->othercon); in free_conn()
1713 call_srcu(&connections_srcu, &con->othercon->rcu, in free_conn()
1738 if (con->othercon) { in work_flush()
1740 &con->othercon->flags); in work_flush()
1742 &con->othercon->flags); in work_flush()