Lines Matching refs:pdsk
149 device->state.pdsk; in remember_old_state()
211 peer_device_state_change->disk_state[NEW] = state.pdsk; in remember_new_state()
420 disk_state = max_t(enum drbd_disk_state, disk_state, device->state.pdsk); in conn_highest_pdsk()
737 drbd_disk_str(ns.pdsk), in print_st()
780 if (ns.pdsk != os.pdsk && flags & CS_DC_PDSK) in print_state_change()
782 drbd_disk_str(os.pdsk), in print_state_change()
783 drbd_disk_str(ns.pdsk)); in print_state_change()
871 ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) in is_valid_state()
874 else if (ns.role == R_PRIMARY && ns.disk <= D_INCONSISTENT && ns.pdsk <= D_INCONSISTENT) in is_valid_state()
880 else if (ns.conn > C_CONNECTED && ns.pdsk < D_INCONSISTENT) in is_valid_state()
883 else if (ns.conn > C_CONNECTED && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
901 else if (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
905 ns.pdsk == D_UNKNOWN) in is_valid_state()
908 else if (ns.conn >= C_CONNECTED && ns.pdsk == D_UNKNOWN) in is_valid_state()
960 && ns.pdsk == D_UP_TO_DATE in is_valid_soft_transition()
980 if (ns.conn == C_DISCONNECTING && ns.pdsk == D_OUTDATED && in is_valid_soft_transition()
981 os.conn < C_CONNECTED && os.pdsk > D_OUTDATED) in is_valid_soft_transition()
1087 if (ns.pdsk > D_UNKNOWN || ns.pdsk < D_INCONSISTENT) in sanitize_state()
1088 ns.pdsk = D_UNKNOWN; in sanitize_state()
1097 if (ns.conn > C_CONNECTED && (ns.disk <= D_FAILED || ns.pdsk <= D_FAILED)) { in sanitize_state()
1109 ns.pdsk = device->new_state_tmp.pdsk; in sanitize_state()
1114 ns.pdsk = D_UNKNOWN; in sanitize_state()
1123 if (ns.pdsk == D_CONSISTENT || ns.pdsk == D_OUTDATED) in sanitize_state()
1124 ns.pdsk = D_UP_TO_DATE; in sanitize_state()
1198 if (ns.pdsk > pdsk_max) in sanitize_state()
1199 ns.pdsk = pdsk_max; in sanitize_state()
1201 if (ns.pdsk < pdsk_min) { in sanitize_state()
1204 ns.pdsk = pdsk_min; in sanitize_state()
1208 (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) && in sanitize_state()
1209 !(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED)) in sanitize_state()
1213 (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) && in sanitize_state()
1214 !(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE)) in sanitize_state()
1433 (device->state.pdsk < D_INCONSISTENT && device->state.peer == R_PRIMARY)) in _drbd_set_state()
1441 if (device->state.pdsk <= D_OUTDATED && device->state.pdsk >= D_INCONSISTENT) in _drbd_set_state()
1453 if (os.disk == D_INCONSISTENT && os.pdsk == D_INCONSISTENT && in _drbd_set_state()
1729 if ((os.disk != D_UP_TO_DATE || os.pdsk != D_UP_TO_DATE) in after_state_ch()
1730 && (ns.disk == D_UP_TO_DATE && ns.pdsk == D_UP_TO_DATE)) { in after_state_ch()
1739 if (!(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE) && in after_state_ch()
1740 (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE)) in after_state_ch()
1806 if (os.pdsk == D_DISKLESS && in after_state_ch()
1807 ns.pdsk > D_DISKLESS && ns.pdsk != D_UNKNOWN) { /* attach on the peer */ in after_state_ch()
1828 if (lost_contact_to_peer_data(os.pdsk, ns.pdsk)) { in after_state_ch()
1843 if (ns.pdsk < D_INCONSISTENT && get_ldev(device)) { in after_state_ch()
1989 if (ns.disk > D_NEGOTIATING && ns.pdsk > D_NEGOTIATING && in after_state_ch()
2093 if (ns_max.pdsk <= D_OUTDATED) { in w_after_conn_state_ch()
2129 .pdsk = D_UNKNOWN, in conn_old_common_state()
2155 if (cs.pdsk != os.pdsk) in conn_old_common_state()
2218 .pdsk = D_MASK in conn_set_state()
2252 ns_max.pdsk = max_t(enum drbd_disk_state, ns.pdsk, ns_max.pdsk); in conn_set_state()
2258 ns_min.pdsk = min_t(enum drbd_disk_state, ns.pdsk, ns_min.pdsk); in conn_set_state()
2268 .pdsk = D_UNKNOWN in conn_set_state()