Home
last modified time | relevance | path

Searched refs:pdsk (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/drivers/block/drbd/
Ddrbd_state.c149 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()
[all …]
Ddrbd_state.h91 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */ member
103 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */
Ddrbd_nl.c508 mask.pdsk = D_MASK; in conn_try_outdate_peer()
509 val.pdsk = D_INCONSISTENT; in conn_try_outdate_peer()
513 mask.pdsk = D_MASK; in conn_try_outdate_peer()
514 val.pdsk = D_OUTDATED; in conn_try_outdate_peer()
520 mask.pdsk = D_MASK; in conn_try_outdate_peer()
521 val.pdsk = D_OUTDATED; in conn_try_outdate_peer()
540 mask.pdsk = D_MASK; in conn_try_outdate_peer()
541 val.pdsk = D_OUTDATED; in conn_try_outdate_peer()
631 if (rv == SS_CW_FAILED_BY_PEER && mask.pdsk != 0) { in drbd_set_role()
632 val.pdsk = 0; in drbd_set_role()
[all …]
Ddrbd_worker.c964 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()
967 ns.pdsk = D_INCONSISTENT; in drbd_resync_finished()
971 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()
1019 pdsk_state = min_t(enum drbd_disk_state, pdsk_state, device->state.pdsk); in drbd_resync_finished()
1148 if (likely(device->state.pdsk >= D_INCONSISTENT)) { in w_e_end_rsdata_req()
1824 ns.pdsk = D_INCONSISTENT; in drbd_start_resync()
Ddrbd_proc.c292 drbd_disk_str(state.pdsk), in drbd_seq_show()
Ddrbd_req.c1073 if (device->state.pdsk != D_UP_TO_DATE) in do_remote_read()
1103 return s.pdsk == D_UP_TO_DATE || in drbd_should_do_remote()
1104 (s.pdsk >= D_INCONSISTENT && in drbd_should_do_remote()
1279 return s.disk == D_UP_TO_DATE || s.pdsk == D_UP_TO_DATE; in may_do_writes()
Ddrbd_receiver.c2597 if (device->state.pdsk < D_INCONSISTENT) { in receive_Data()
4105 if (device->state.pdsk >= D_INCONSISTENT && in receive_sizes()
4167 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in receive_uuids()
4219 ms.pdsk = ps.disk; in convert_state()
4220 ms.disk = ps.pdsk; in convert_state()
4323 if ((os.pdsk == D_INCONSISTENT || os.pdsk == D_CONSISTENT) && in receive_state()
4360 if (os.pdsk == D_UP_TO_DATE && real_peer_disk == D_INCONSISTENT && in receive_state()
4417 ns.pdsk = real_peer_disk; in receive_state()
4422 …if (ns.pdsk == D_CONSISTENT && drbd_suspended(device) && ns.conn == C_CONNECTED && os.conn < C_CON… in receive_state()
Ddrbd_main.c1955 if (device->state.pdsk >= D_INCONSISTENT && device->state.conn >= C_CONNECTED) { in drbd_queue_unplug()
1974 .pdsk = D_UNKNOWN, in drbd_set_defaults()
/Linux-v4.19/include/linux/
Ddrbd.h272 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */ member
288 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */