• Home
  • Raw
  • Download

Lines Matching refs:conn

140 				      C_WF_REPORT_PARAMS, device->state.conn);  in remember_old_state()
201 max_t(enum drbd_conns, C_WF_REPORT_PARAMS, state.conn); in remember_new_state()
304 device->state.conn != C_STANDALONE || in conn_all_vols_unconf()
417 enum drbd_conns conn = C_MASK; in conn_lowest_conn() local
424 conn = min_t(enum drbd_conns, conn, device->state.conn); in conn_lowest_conn()
428 return conn; in conn_lowest_conn()
439 if (peer_device->device->state.conn == C_WF_REPORT_PARAMS) { in no_peer_wf_report_params()
470 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && in cl_wide_st_chg()
472 (os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || in cl_wide_st_chg()
473 (os.conn != C_STARTING_SYNC_S && ns.conn == C_STARTING_SYNC_S) || in cl_wide_st_chg()
475 (os.conn >= C_CONNECTED && ns.conn == C_DISCONNECTING) || in cl_wide_st_chg()
476 (os.conn == C_CONNECTED && ns.conn == C_VERIFY_S) || in cl_wide_st_chg()
477 (os.conn == C_CONNECTED && ns.conn == C_WF_REPORT_PARAMS); in cl_wide_st_chg()
719 drbd_conn_str(ns.conn), in print_st()
758 if (ns.conn != os.conn && flags & CS_DC_CONN) in print_state_change()
760 drbd_conn_str(os.conn), in print_state_change()
761 drbd_conn_str(ns.conn)); in print_state_change()
853 else if (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.disk < D_UP_TO_DATE) in is_valid_state()
857 ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) in is_valid_state()
863 else if (ns.conn > C_CONNECTED && ns.disk < D_INCONSISTENT) in is_valid_state()
866 else if (ns.conn > C_CONNECTED && ns.pdsk < D_INCONSISTENT) in is_valid_state()
869 else if (ns.conn > C_CONNECTED && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
872 else if ((ns.conn == C_CONNECTED || in is_valid_state()
873 ns.conn == C_WF_BITMAP_S || in is_valid_state()
874 ns.conn == C_SYNC_SOURCE || in is_valid_state()
875 ns.conn == C_PAUSED_SYNC_S) && in is_valid_state()
879 else if ((ns.conn == C_VERIFY_S || ns.conn == C_VERIFY_T) && in is_valid_state()
883 else if ((ns.conn == C_VERIFY_S || ns.conn == C_VERIFY_T) && in is_valid_state()
890 else if ((ns.conn == C_STARTING_SYNC_S || ns.conn == C_STARTING_SYNC_T) && in is_valid_state()
894 else if (ns.conn >= C_CONNECTED && ns.pdsk == D_UNKNOWN) in is_valid_state()
916 if ((ns.conn == C_STARTING_SYNC_T || ns.conn == C_STARTING_SYNC_S) && in is_valid_soft_transition()
917 os.conn > C_CONNECTED) in is_valid_soft_transition()
920 if (ns.conn == C_DISCONNECTING && os.conn == C_STANDALONE) in is_valid_soft_transition()
926 if (ns.conn == C_WF_CONNECTION && os.conn < C_UNCONNECTED) in is_valid_soft_transition()
932 if (ns.conn == C_DISCONNECTING && os.conn == C_UNCONNECTED) in is_valid_soft_transition()
938 !((ns.conn == C_WF_REPORT_PARAMS && os.conn == C_WF_CONNECTION) || in is_valid_soft_transition()
939 (ns.conn >= C_CONNECTED && os.conn == C_WF_REPORT_PARAMS))) in is_valid_soft_transition()
948 && (ns.conn <= C_WF_SYNC_UUID || ns.conn != os.conn)) in is_valid_soft_transition()
951 if ((ns.conn == C_VERIFY_S || ns.conn == C_VERIFY_T) && os.conn < C_CONNECTED) in is_valid_soft_transition()
954 if ((ns.conn == C_VERIFY_S || ns.conn == C_VERIFY_T) && in is_valid_soft_transition()
955 ns.conn != os.conn && os.conn > C_CONNECTED) in is_valid_soft_transition()
958 if ((ns.conn == C_STARTING_SYNC_S || ns.conn == C_STARTING_SYNC_T) && in is_valid_soft_transition()
959 os.conn < C_CONNECTED) in is_valid_soft_transition()
962 if ((ns.conn == C_SYNC_TARGET || ns.conn == C_SYNC_SOURCE) in is_valid_soft_transition()
963 && os.conn < C_WF_REPORT_PARAMS) in is_valid_soft_transition()
966 if (ns.conn == C_DISCONNECTING && ns.pdsk == D_OUTDATED && in is_valid_soft_transition()
967 os.conn < C_CONNECTED && os.pdsk > D_OUTDATED) in is_valid_soft_transition()
1018 rv = is_valid_conn_transition(os.conn, ns.conn); in is_valid_transition()
1070 if (ns.conn < C_CONNECTED) { in sanitize_state()
1078 if (ns.conn == C_STANDALONE && ns.disk == D_DISKLESS && ns.role == R_SECONDARY) in sanitize_state()
1083 if (ns.conn > C_CONNECTED && (ns.disk <= D_FAILED || ns.pdsk <= D_FAILED)) { in sanitize_state()
1085 *warn = ns.conn == C_VERIFY_S || ns.conn == C_VERIFY_T ? in sanitize_state()
1087 ns.conn = C_CONNECTED; in sanitize_state()
1091 if (ns.conn < C_CONNECTED && ns.disk == D_NEGOTIATING && in sanitize_state()
1106 if (ns.conn >= C_CONNECTED && ns.conn < C_AHEAD) { in sanitize_state()
1118 switch ((enum drbd_conns)ns.conn) { in sanitize_state()
1194 (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) && in sanitize_state()
1195 !(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED)) in sanitize_state()
1204 if (ns.conn == C_SYNC_SOURCE) in sanitize_state()
1205 ns.conn = C_PAUSED_SYNC_S; in sanitize_state()
1206 if (ns.conn == C_SYNC_TARGET) in sanitize_state()
1207 ns.conn = C_PAUSED_SYNC_T; in sanitize_state()
1209 if (ns.conn == C_PAUSED_SYNC_S) in sanitize_state()
1210 ns.conn = C_SYNC_SOURCE; in sanitize_state()
1211 if (ns.conn == C_PAUSED_SYNC_T) in sanitize_state()
1212 ns.conn = C_SYNC_TARGET; in sanitize_state()
1322 if (!is_sync_state(os.conn) && is_sync_state(ns.conn)) in _drbd_set_state()
1349 if (os.conn == C_WF_REPORT_PARAMS && ns.conn != C_WF_REPORT_PARAMS && in _drbd_set_state()
1361 if ((os.conn == C_VERIFY_S || os.conn == C_VERIFY_T) && in _drbd_set_state()
1362 ns.conn <= C_CONNECTED) { in _drbd_set_state()
1370 if ((os.conn == C_PAUSED_SYNC_T || os.conn == C_PAUSED_SYNC_S) && in _drbd_set_state()
1371 (ns.conn == C_SYNC_TARGET || ns.conn == C_SYNC_SOURCE)) { in _drbd_set_state()
1375 if (ns.conn == C_SYNC_TARGET) in _drbd_set_state()
1379 if ((os.conn == C_SYNC_TARGET || os.conn == C_SYNC_SOURCE) && in _drbd_set_state()
1380 (ns.conn == C_PAUSED_SYNC_T || ns.conn == C_PAUSED_SYNC_S)) { in _drbd_set_state()
1385 if (os.conn == C_CONNECTED && in _drbd_set_state()
1386 (ns.conn == C_VERIFY_S || ns.conn == C_VERIFY_T)) { in _drbd_set_state()
1390 set_ov_position(device, ns.conn); in _drbd_set_state()
1403 if (ns.conn == C_VERIFY_S) { in _drbd_set_state()
1421 if (device->state.conn > C_WF_REPORT_PARAMS) in _drbd_set_state()
1444 if (os.conn != C_DISCONNECTING && ns.conn == C_DISCONNECTING) in _drbd_set_state()
1448 if (os.conn != C_STANDALONE && ns.conn == C_STANDALONE) in _drbd_set_state()
1452 if (os.conn > C_WF_CONNECTION && in _drbd_set_state()
1453 ns.conn <= C_TEAR_DOWN && ns.conn >= C_TIMEOUT) in _drbd_set_state()
1457 if (os.conn < C_CONNECTED && ns.conn >= C_CONNECTED) { in _drbd_set_state()
1506 _drbd_request_state(device, NS(conn, C_CONNECTED), CS_VERBOSE); in abw_start_sync()
1510 switch (device->state.conn) { in abw_start_sync()
1512 _drbd_request_state(device, NS(conn, C_WF_SYNC_UUID), CS_VERBOSE); in abw_start_sync()
1737 if (os.conn < C_CONNECTED && conn_lowest_conn(connection) >= C_CONNECTED) in after_state_ch()
1785 if ((os.conn != C_SYNC_SOURCE && os.conn != C_PAUSED_SYNC_S) && in after_state_ch()
1786 (ns.conn == C_SYNC_SOURCE || ns.conn == C_PAUSED_SYNC_S) && in after_state_ch()
1808 if (os.conn != C_WF_BITMAP_S && ns.conn == C_WF_BITMAP_S && in after_state_ch()
1809 device->state.conn == C_WF_BITMAP_S) in after_state_ch()
1850 device->state.conn <= C_CONNECTED && get_ldev(device)) { in after_state_ch()
1859 if (ns.conn >= C_CONNECTED && in after_state_ch()
1867 if (ns.conn >= C_CONNECTED && in after_state_ch()
1879 if (os.conn == C_WF_REPORT_PARAMS && ns.conn >= C_CONNECTED) in after_state_ch()
1882 if (os.conn != C_AHEAD && ns.conn == C_AHEAD) in after_state_ch()
1886 if ((os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || in after_state_ch()
1887 (os.conn != C_STARTING_SYNC_S && ns.conn == C_STARTING_SYNC_S)) in after_state_ch()
1940 if (ns.conn >= C_CONNECTED) in after_state_ch()
1964 if (ns.conn >= C_CONNECTED) in after_state_ch()
1972 if (os.disk == D_UP_TO_DATE && ns.disk == D_INCONSISTENT && ns.conn >= C_CONNECTED) in after_state_ch()
1978 if (ns.conn == C_CONNECTED) in after_state_ch()
1983 if ((os.conn > C_CONNECTED && ns.conn <= C_CONNECTED) || in after_state_ch()
1990 if (os.disk < D_UP_TO_DATE && os.conn >= C_SYNC_SOURCE && ns.conn == C_CONNECTED) in after_state_ch()
1996 if (os.conn == C_VERIFY_S && ns.conn == C_CONNECTED in after_state_ch()
2011 if ((os.conn > C_CONNECTED && os.conn < C_AHEAD) && in after_state_ch()
2012 (ns.conn == C_CONNECTED || ns.conn >= C_AHEAD) && get_ldev(device)) { in after_state_ch()
2019 ns.conn == C_STANDALONE && in after_state_ch()
2053 if (oc == C_STANDALONE && ns_max.conn == C_UNCONNECTED) in w_after_conn_state_ch()
2056 if (oc == C_DISCONNECTING && ns_max.conn == C_STANDALONE) { in w_after_conn_state_ch()
2113 .conn = connection->cstate, in conn_old_common_state()
2135 if (cs.conn != os.conn) in conn_old_common_state()
2202 .conn = val.conn, in conn_set_state()
2210 if (mask.conn == C_MASK) { in conn_set_state()
2214 if (connection->cstate != C_WF_REPORT_PARAMS && val.conn == C_WF_REPORT_PARAMS) in conn_set_state()
2217 connection->cstate = val.conn; in conn_set_state()
2236 ns_max.conn = max_t(enum drbd_conns, ns.conn, ns_max.conn); in conn_set_state()
2242 ns_min.conn = min_t(enum drbd_conns, ns.conn, ns_min.conn); in conn_set_state()
2252 .conn = val.conn, in conn_set_state()
2295 if (mask.conn) { in _conn_request_state()
2296 rv = is_valid_conn_transition(oc, val.conn); in _conn_request_state()
2305 if (oc == C_WF_REPORT_PARAMS && val.conn == C_DISCONNECTING && in _conn_request_state()
2324 if (val.conn == C_DISCONNECTING) in _conn_request_state()
2348 acscw->oc = os.conn; in _conn_request_state()
2373 drbd_err(connection, " old_conn:%s wanted_conn:%s\n", drbd_conn_str(oc), drbd_conn_str(val.conn)); in _conn_request_state()