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

/linux-master/drivers/block/drbd/
H A Ddrbd_strings.c45 [R_PRIMARY] = "Primary",
H A Ddrbd_state.c319 if (role1 == R_PRIMARY || role2 == R_PRIMARY)
320 return R_PRIMARY;
332 return R_PRIMARY;
471 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) ||
840 if (!nc->two_primaries && ns.role == R_PRIMARY) {
841 if (ns.peer == R_PRIMARY)
843 else if (conn_highest_peer(first_peer_device(device)->connection) == R_PRIMARY)
853 else if (ns.role == R_PRIMARY
[all...]
H A Ddrbd_receiver.c1773 * R_PRIMARY crashes now.
2980 if (device->state.peer != R_PRIMARY
3120 if (hg == 1 && device->state.role == R_PRIMARY)
3127 return device->state.role == R_PRIMARY ? 1 : -1;
3130 if (hg == -1 && device->state.role == R_PRIMARY) {
3321 if (device->state.role == R_PRIMARY || peer_role == R_PRIMARY) {
3327 if (device->state.role == R_PRIMARY && peer_role == R_PRIMARY) {
3334 if (device->state.role == R_PRIMARY)
[all...]
H A Ddrbd_nl.c544 * become R_PRIMARY, but finds the other peer being active. */
626 if (new_role == R_PRIMARY) {
794 rv = drbd_set_role(adm_ctx.device, R_PRIMARY, parms.assume_uptodate);
888 * on an D_INCONSISTENT R_PRIMARY:
894 * R_PRIMARY D_INCONSISTENT, and peer's disk is unreachable
897 * R_PRIMARY D_INCONSISTENT, and C_SYNC_TARGET:
1287 if (device->state.role == R_PRIMARY && new < now)
1869 * (we may currently be R_PRIMARY with no local disk...) */
1915 (device->state.role == R_PRIMARY || device->state.peer == R_PRIMARY)
[all...]
H A Ddrbd_main.c1491 return drop_it; /* && (device->state == R_PRIMARY) */;
1663 * R_PRIMARY -> Peer (P_DATA, P_TRIM)
1754 * Peer -> (diskless) R_PRIMARY (P_DATA_REPLY)
1900 if (device->state.role != R_PRIMARY) {
1928 D_ASSERT(device, device->state.role == R_PRIMARY);
3338 if (device->state.role == R_PRIMARY)
/linux-master/include/linux/
H A Ddrbd.h175 R_PRIMARY = 1, /* role */ enumerator in enum:drbd_role

Completed in 161 milliseconds