Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/block/drbd/
Ddrbd_state.c90 if (role1 == R_PRIMARY || role2 == R_PRIMARY) in max_role()
91 return R_PRIMARY; in max_role()
102 return R_PRIMARY; in min_role()
241 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg()
566 if (!nc->two_primaries && ns.role == R_PRIMARY) { in is_valid_state()
567 if (ns.peer == R_PRIMARY) in is_valid_state()
569 else if (conn_highest_peer(first_peer_device(device)->connection) == R_PRIMARY) in is_valid_state()
579 else if (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.disk < D_UP_TO_DATE) in is_valid_state()
583 ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) in is_valid_state()
586 else if (ns.role == R_PRIMARY && ns.disk <= D_INCONSISTENT && ns.pdsk <= D_INCONSISTENT) in is_valid_state()
[all …]
Ddrbd_strings.c57 [R_PRIMARY] = "Primary",
Ddrbd_nl.c574 if (new_role == R_PRIMARY) { in drbd_set_role()
740 retcode = drbd_set_role(adm_ctx.device, R_PRIMARY, parms.assume_uptodate); in drbd_adm_set_role()
1219 if (device->state.role == R_PRIMARY && new < now) in drbd_reconsider_max_bio_size()
1688 device->state.role == R_PRIMARY && device->ed_uuid && in drbd_adm_attach()
1738 !(device->state.role == R_PRIMARY && device->resource->susp_nod)) in drbd_adm_attach()
1763 if (device->state.role != R_PRIMARY && in drbd_adm_attach()
1855 if (device->state.role == R_PRIMARY) in drbd_adm_attach()
2018 conn_highest_role(connection) == R_PRIMARY && in _check_net_options()
2019 conn_highest_peer(connection) == R_PRIMARY) in _check_net_options()
2034 if (device->state.role == R_PRIMARY && new_net_conf->discard_my_data) in _check_net_options()
[all …]
Ddrbd_receiver.c2686 if (device->state.peer != R_PRIMARY in receive_DataRequest()
2824 if (hg == 1 && device->state.role == R_PRIMARY) in drbd_asb_recover_1p()
2831 return device->state.role == R_PRIMARY ? 1 : -1; in drbd_asb_recover_1p()
2834 if (hg == -1 && device->state.role == R_PRIMARY) { in drbd_asb_recover_1p()
3172 int pcount = (device->state.role == R_PRIMARY) in drbd_sync_handshake()
3173 + (peer_role == R_PRIMARY); in drbd_sync_handshake()
3230 device->state.role == R_PRIMARY && device->state.disk >= D_CONSISTENT) { in drbd_sync_handshake()
3893 device->state.role == R_PRIMARY && in receive_uuids()
3921 device->state.role == R_PRIMARY) { in receive_uuids()
4686 if (conn_highest_role(connection) == R_PRIMARY && conn_highest_pdsk(connection) >= D_UNKNOWN) in conn_disconnect()
Ddrbd_main.c1868 if (device->state.role != R_PRIMARY) { in drbd_open()
3396 if (device->state.role == R_PRIMARY) in __drbd_uuid_set()
/linux-4.1.27/include/linux/
Ddrbd.h195 R_PRIMARY = 1, /* role */ enumerator