Searched refs:R_PRIMARY (Results 1 – 6 of 6) sorted by relevance
319 if (role1 == R_PRIMARY || role2 == R_PRIMARY) in max_role()320 return R_PRIMARY; in max_role()332 return R_PRIMARY; in min_role()471 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg()840 if (!nc->two_primaries && ns.role == R_PRIMARY) { in is_valid_state()841 if (ns.peer == R_PRIMARY) in is_valid_state()843 else if (conn_highest_peer(first_peer_device(device)->connection) == R_PRIMARY) in is_valid_state()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()860 else if (ns.role == R_PRIMARY && ns.disk <= D_INCONSISTENT && ns.pdsk <= D_INCONSISTENT) in is_valid_state()[all …]
45 [R_PRIMARY] = "Primary",
626 if (new_role == R_PRIMARY) { in drbd_set_role()794 R_PRIMARY, parms.assume_uptodate); in drbd_adm_set_role()1312 if (device->state.role != R_PRIMARY) { in decide_on_write_same_support()1410 if (device->state.role == R_PRIMARY && new < now) in drbd_reconsider_queue_parameters()1983 (device->state.role == R_PRIMARY || device->state.peer == R_PRIMARY) && in drbd_adm_attach()2052 !(device->state.role == R_PRIMARY && device->resource->susp_nod)) in drbd_adm_attach()2077 if (device->state.role != R_PRIMARY && in drbd_adm_attach()2169 if (device->state.role == R_PRIMARY) in drbd_adm_attach()2311 conn_highest_role(connection) == R_PRIMARY && in _check_net_options()2312 conn_highest_peer(connection) == R_PRIMARY) in _check_net_options()[all …]
3018 if (device->state.peer != R_PRIMARY in receive_DataRequest()3159 if (hg == 1 && device->state.role == R_PRIMARY) in drbd_asb_recover_1p()3166 return device->state.role == R_PRIMARY ? 1 : -1; in drbd_asb_recover_1p()3169 if (hg == -1 && device->state.role == R_PRIMARY) { in drbd_asb_recover_1p()3359 if (device->state.role == R_PRIMARY || peer_role == R_PRIMARY) { in drbd_uuid_compare()3365 if (device->state.role == R_PRIMARY && peer_role == R_PRIMARY) { in drbd_uuid_compare()3372 if (device->state.role == R_PRIMARY) in drbd_uuid_compare()3552 int pcount = (device->state.role == R_PRIMARY) in drbd_sync_handshake()3553 + (peer_role == R_PRIMARY); in drbd_sync_handshake()3607 device->state.role == R_PRIMARY && device->state.disk >= D_CONSISTENT) { in drbd_sync_handshake()[all …]
1913 if (device->state.role != R_PRIMARY) { in drbd_open()1940 D_ASSERT(device, device->state.role == R_PRIMARY); in drbd_queue_unplug()3340 if (device->state.role == R_PRIMARY) in __drbd_uuid_set()
182 R_PRIMARY = 1, /* role */ enumerator