Lines Matching refs:R_SECONDARY
305 device->state.role != R_SECONDARY) { in conn_all_vols_unconf()
321 if (role1 == R_SECONDARY || role2 == R_SECONDARY) in max_role()
322 return R_SECONDARY; in max_role()
330 if (role1 == R_SECONDARY || role2 == R_SECONDARY) in min_role()
331 return R_SECONDARY; in min_role()
337 enum drbd_role role = R_SECONDARY; in conn_highest_role()
850 else if (ns.role == R_SECONDARY && device->open_cnt) in is_valid_state()
1078 if (ns.conn == C_STANDALONE && ns.disk == D_DISKLESS && ns.role == R_SECONDARY) in sanitize_state()
1440 os.peer == R_SECONDARY && ns.peer == R_PRIMARY) in _drbd_set_state()
1837 if (os.peer == R_PRIMARY && ns.peer == R_SECONDARY) in after_state_ch()
1849 if (os.role == R_PRIMARY && ns.role == R_SECONDARY && in after_state_ch()
2020 ns.role == R_SECONDARY) { in after_state_ch()
2110 { .role = R_SECONDARY, in conn_old_common_state()
2249 .role = R_SECONDARY, in conn_set_state()