Lines Matching refs:R_PRIMARY
627 if (new_role == R_PRIMARY) { in drbd_set_role()
794 retcode = drbd_set_role(adm_ctx.device, R_PRIMARY, parms.assume_uptodate); in drbd_adm_set_role()
1311 if (device->state.role != R_PRIMARY) { in decide_on_write_same_support()
1417 if (device->state.role == R_PRIMARY && new < now) in drbd_reconsider_queue_parameters()
1990 (device->state.role == R_PRIMARY || device->state.peer == R_PRIMARY) && in drbd_adm_attach()
2059 !(device->state.role == R_PRIMARY && device->resource->susp_nod)) in drbd_adm_attach()
2084 if (device->state.role != R_PRIMARY && in drbd_adm_attach()
2176 if (device->state.role == R_PRIMARY) in drbd_adm_attach()
2318 conn_highest_role(connection) == R_PRIMARY && in _check_net_options()
2319 conn_highest_peer(connection) == R_PRIMARY) in _check_net_options()
2334 if (device->state.role == R_PRIMARY && new_net_conf->discard_my_data) in _check_net_options()
2827 iass = (device->state.role == R_PRIMARY); in resync_after_online_grow()
3120 if (device->state.conn == C_STANDALONE && device->state.role == R_PRIMARY) { in drbd_adm_invalidate_peer()