Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/block/drbd/
Ddrbd_state.c331 if (role1 == R_PRIMARY || role2 == R_PRIMARY) in max_role()
332 return R_PRIMARY; in max_role()
344 return R_PRIMARY; in min_role()
483 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg()
854 if (!nc->two_primaries && ns.role == R_PRIMARY) { in is_valid_state()
855 if (ns.peer == R_PRIMARY) in is_valid_state()
857 else if (conn_highest_peer(first_peer_device(device)->connection) == R_PRIMARY) in is_valid_state()
867 else if (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.disk < D_UP_TO_DATE) in is_valid_state()
871 ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) in is_valid_state()
874 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_receiver.c2890 if (device->state.peer != R_PRIMARY in receive_DataRequest()
3031 if (hg == 1 && device->state.role == R_PRIMARY) in drbd_asb_recover_1p()
3038 return device->state.role == R_PRIMARY ? 1 : -1; in drbd_asb_recover_1p()
3041 if (hg == -1 && device->state.role == R_PRIMARY) { in drbd_asb_recover_1p()
3231 if (device->state.role == R_PRIMARY || peer_role == R_PRIMARY) { in drbd_uuid_compare()
3237 if (device->state.role == R_PRIMARY && peer_role == R_PRIMARY) { in drbd_uuid_compare()
3244 if (device->state.role == R_PRIMARY) in drbd_uuid_compare()
3420 int pcount = (device->state.role == R_PRIMARY) in drbd_sync_handshake()
3421 + (peer_role == R_PRIMARY); in drbd_sync_handshake()
3478 device->state.role == R_PRIMARY && device->state.disk >= D_CONSISTENT) { in drbd_sync_handshake()
[all …]
Ddrbd_nl.c610 if (new_role == R_PRIMARY) { in drbd_set_role()
776 retcode = drbd_set_role(adm_ctx.device, R_PRIMARY, parms.assume_uptodate); in drbd_adm_set_role()
1281 if (device->state.role != R_PRIMARY) { in decide_on_write_same_support()
1386 if (device->state.role == R_PRIMARY && new < now) in drbd_reconsider_queue_parameters()
1938 device->state.role == R_PRIMARY && device->ed_uuid && in drbd_adm_attach()
1997 !(device->state.role == R_PRIMARY && device->resource->susp_nod)) in drbd_adm_attach()
2022 if (device->state.role != R_PRIMARY && in drbd_adm_attach()
2114 if (device->state.role == R_PRIMARY) in drbd_adm_attach()
2256 conn_highest_role(connection) == R_PRIMARY && in _check_net_options()
2257 conn_highest_peer(connection) == R_PRIMARY) in _check_net_options()
[all …]
Ddrbd_main.c1929 if (device->state.role != R_PRIMARY) { in drbd_open()
1956 D_ASSERT(device, device->state.role == R_PRIMARY); in drbd_queue_unplug()
3437 if (device->state.role == R_PRIMARY) in __drbd_uuid_set()
/Linux-v4.19/include/linux/
Ddrbd.h194 R_PRIMARY = 1, /* role */ enumerator