Lines Matching refs:pdsk
137 device->state.pdsk; in remember_old_state()
199 peer_device_state_change->disk_state[NEW] = state.pdsk; in remember_new_state()
408 disk_state = max_t(enum drbd_disk_state, disk_state, device->state.pdsk); in conn_highest_pdsk()
723 drbd_disk_str(ns.pdsk), in print_st()
766 if (ns.pdsk != os.pdsk && flags & CS_DC_PDSK) in print_state_change()
768 drbd_disk_str(os.pdsk), in print_state_change()
769 drbd_disk_str(ns.pdsk)); in print_state_change()
857 ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) in is_valid_state()
860 else if (ns.role == R_PRIMARY && ns.disk <= D_INCONSISTENT && ns.pdsk <= D_INCONSISTENT) in is_valid_state()
866 else if (ns.conn > C_CONNECTED && ns.pdsk < D_INCONSISTENT) in is_valid_state()
869 else if (ns.conn > C_CONNECTED && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
887 else if (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
891 ns.pdsk == D_UNKNOWN) in is_valid_state()
894 else if (ns.conn >= C_CONNECTED && ns.pdsk == D_UNKNOWN) in is_valid_state()
946 && ns.pdsk == D_UP_TO_DATE in is_valid_soft_transition()
966 if (ns.conn == C_DISCONNECTING && ns.pdsk == D_OUTDATED && in is_valid_soft_transition()
967 os.conn < C_CONNECTED && os.pdsk > D_OUTDATED) in is_valid_soft_transition()
1073 if (ns.pdsk > D_UNKNOWN || ns.pdsk < D_INCONSISTENT) in sanitize_state()
1074 ns.pdsk = D_UNKNOWN; in sanitize_state()
1083 if (ns.conn > C_CONNECTED && (ns.disk <= D_FAILED || ns.pdsk <= D_FAILED)) { in sanitize_state()
1095 ns.pdsk = device->new_state_tmp.pdsk; in sanitize_state()
1100 ns.pdsk = D_UNKNOWN; in sanitize_state()
1109 if (ns.pdsk == D_CONSISTENT || ns.pdsk == D_OUTDATED) in sanitize_state()
1110 ns.pdsk = D_UP_TO_DATE; in sanitize_state()
1184 if (ns.pdsk > pdsk_max) in sanitize_state()
1185 ns.pdsk = pdsk_max; in sanitize_state()
1187 if (ns.pdsk < pdsk_min) { in sanitize_state()
1190 ns.pdsk = pdsk_min; in sanitize_state()
1194 (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) && in sanitize_state()
1195 !(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED)) in sanitize_state()
1199 (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) && in sanitize_state()
1200 !(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE)) in sanitize_state()
1419 (device->state.pdsk < D_INCONSISTENT && device->state.peer == R_PRIMARY)) in _drbd_set_state()
1427 if (device->state.pdsk <= D_OUTDATED && device->state.pdsk >= D_INCONSISTENT) in _drbd_set_state()
1439 if (os.disk == D_INCONSISTENT && os.pdsk == D_INCONSISTENT && in _drbd_set_state()
1715 if ((os.disk != D_UP_TO_DATE || os.pdsk != D_UP_TO_DATE) in after_state_ch()
1716 && (ns.disk == D_UP_TO_DATE && ns.pdsk == D_UP_TO_DATE)) { in after_state_ch()
1725 if (!(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE) && in after_state_ch()
1726 (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE)) in after_state_ch()
1792 if (os.pdsk == D_DISKLESS && in after_state_ch()
1793 ns.pdsk > D_DISKLESS && ns.pdsk != D_UNKNOWN) { /* attach on the peer */ in after_state_ch()
1814 if (lost_contact_to_peer_data(os.pdsk, ns.pdsk)) { in after_state_ch()
1829 if (ns.pdsk < D_INCONSISTENT && get_ldev(device)) { in after_state_ch()
1975 if (ns.disk > D_NEGOTIATING && ns.pdsk > D_NEGOTIATING && in after_state_ch()
2079 if (ns_max.pdsk <= D_OUTDATED) { in w_after_conn_state_ch()
2114 .pdsk = D_UNKNOWN, in conn_old_common_state()
2140 if (cs.pdsk != os.pdsk) in conn_old_common_state()
2203 .pdsk = D_MASK in conn_set_state()
2237 ns_max.pdsk = max_t(enum drbd_disk_state, ns.pdsk, ns_max.pdsk); in conn_set_state()
2243 ns_min.pdsk = min_t(enum drbd_disk_state, ns.pdsk, ns_min.pdsk); in conn_set_state()
2253 .pdsk = D_UNKNOWN in conn_set_state()