Lines Matching refs:R_PRIMARY
626 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()
2765 iass = (device->state.role == R_PRIMARY); in resync_after_online_grow()
3058 if (device->state.conn == C_STANDALONE && device->state.role == R_PRIMARY) { in drbd_adm_invalidate_peer()