Lines Matching refs:R_PRIMARY
544 * 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) &&
1984 !(device->state.role == R_PRIMARY && device->resource->susp_nod))
1994 /* If I am currently not R_PRIMARY,
1997 * and have been R_PRIMARY before that crash.
2000 * (have been degraded R_PRIMARY), chances are that
2009 if (device->state.role != R_PRIMARY &&
2103 if (device->state.role == R_PRIMARY)
2246 conn_highest_role(connection) == R_PRIMARY &&
2247 conn_highest_peer(connection) == R_PRIMARY)
2262 if (device->state.role == R_PRIMARY && new_net_conf->discard_my_data)
2756 iass = (device->state.role == R_PRIMARY);
3045 /* If we happen to be C_STANDALONE R_PRIMARY, just set all bits
3049 if (device->state.conn == C_STANDALONE && device->state.role == R_PRIMARY) {