Home
last modified time | relevance | path

Searched refs:R_PRIMARY (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/block/drbd/
H A Ddrbd_state.c319 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()
945 if (os.role != R_PRIMARY && ns.role == R_PRIMARY in is_valid_soft_transition()
1420 if (device->state.role == R_PRIMARY || in _drbd_set_state()
1442 os.peer == R_SECONDARY && ns.peer == R_PRIMARY) in _drbd_set_state()
1820 if ((ns.role == R_PRIMARY || ns.peer == R_PRIMARY) && in after_state_ch()
[all …]
H A Ddrbd_strings.c45 [R_PRIMARY] = "Primary",
H A Ddrbd_nl.c626 if (new_role == R_PRIMARY) { in drbd_set_role()
794 rv = drbd_set_role(adm_ctx.device, R_PRIMARY, parms.assume_uptodate); in drbd_adm_set_role()
1343 if (device->state.role == R_PRIMARY && new < now) in drbd_reconsider_queue_parameters()
1922 (device->state.role == R_PRIMARY || device->state.peer == R_PRIMARY) && in drbd_adm_attach()
1991 !(device->state.role == R_PRIMARY && device->resource->susp_nod)) in drbd_adm_attach()
2016 if (device->state.role != R_PRIMARY && in drbd_adm_attach()
2110 if (device->state.role == R_PRIMARY) in drbd_adm_attach()
2255 conn_highest_role(connection) == R_PRIMARY && in _check_net_options()
2256 conn_highest_peer(connection) == R_PRIMARY) in _check_net_options()
2271 if (device->state.role == R_PRIMARY && new_net_conf->discard_my_data) in _check_net_options()
[all …]
H A Ddrbd_receiver.c2980 if (device->state.peer != R_PRIMARY in receive_DataRequest()
3120 if (hg == 1 && device->state.role == R_PRIMARY) in drbd_asb_recover_1p()
3127 return device->state.role == R_PRIMARY ? 1 : -1; in drbd_asb_recover_1p()
3130 if (hg == -1 && device->state.role == R_PRIMARY) { in drbd_asb_recover_1p()
3321 if (device->state.role == R_PRIMARY || peer_role == R_PRIMARY) { in drbd_uuid_compare()
3327 if (device->state.role == R_PRIMARY && peer_role == R_PRIMARY) { in drbd_uuid_compare()
3334 if (device->state.role == R_PRIMARY) in drbd_uuid_compare()
3514 int pcount = (device->state.role == R_PRIMARY) in drbd_sync_handshake()
3515 + (peer_role == R_PRIMARY); in drbd_sync_handshake()
4257 device->state.role == R_PRIMARY && in receive_uuids()
[all …]
H A Ddrbd_main.c1900 if (device->state.role != R_PRIMARY) { in drbd_open()
1928 D_ASSERT(device, device->state.role == R_PRIMARY); in drbd_queue_unplug()
3331 if (device->state.role == R_PRIMARY) in __drbd_uuid_set()
/openbmc/linux/include/linux/
H A Ddrbd.h175 R_PRIMARY = 1, /* role */ enumerator