Lines Matching refs:R_SECONDARY
543 * This is useful when an unconnected R_SECONDARY is asked to
718 if (new_role == R_SECONDARY) {
752 set_disk_ro(device->vdisk, new_role == R_SECONDARY);
796 rv = drbd_set_role(adm_ctx.device, R_SECONDARY, 0);
2818 if (device->state.role == R_SECONDARY &&
2819 device->state.peer == R_SECONDARY) {
2976 /* If we happen to be C_STANDALONE R_SECONDARY, just change to
2980 if (device->state.conn == C_STANDALONE && device->state.role == R_SECONDARY) {
4355 device->state.role == R_SECONDARY) {
4455 retcode = drbd_set_role(peer_device->device, R_SECONDARY, 0);