Searched refs:pdsk (Results 1 – 9 of 9) sorted by relevance
/linux-6.6.21/drivers/block/drbd/ |
D | drbd_state.c | 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() [all …]
|
D | drbd_state.h | 91 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 */
|
D | drbd_nl.c | 524 mask.pdsk = D_MASK; in conn_try_outdate_peer() 525 val.pdsk = D_INCONSISTENT; in conn_try_outdate_peer() 529 mask.pdsk = D_MASK; in conn_try_outdate_peer() 530 val.pdsk = D_OUTDATED; in conn_try_outdate_peer() 536 mask.pdsk = D_MASK; in conn_try_outdate_peer() 537 val.pdsk = D_OUTDATED; in conn_try_outdate_peer() 556 mask.pdsk = D_MASK; in conn_try_outdate_peer() 557 val.pdsk = D_OUTDATED; in conn_try_outdate_peer() 647 if (rv == SS_CW_FAILED_BY_PEER && mask.pdsk != 0) { in drbd_set_role() 648 val.pdsk = 0; in drbd_set_role() [all …]
|
D | drbd_worker.c | 951 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished() 954 ns.pdsk = D_INCONSISTENT; in drbd_resync_finished() 958 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished() 1006 pdsk_state = min_t(enum drbd_disk_state, pdsk_state, device->state.pdsk); in drbd_resync_finished() 1135 if (likely(device->state.pdsk >= D_INCONSISTENT)) { in w_e_end_rsdata_req() 1817 ns.pdsk = D_INCONSISTENT; in drbd_start_resync()
|
D | drbd_proc.c | 279 drbd_disk_str(state.pdsk), in drbd_seq_show()
|
D | drbd_req.c | 1055 if (device->state.pdsk != D_UP_TO_DATE) in do_remote_read() 1085 return s.pdsk == D_UP_TO_DATE || in drbd_should_do_remote() 1086 (s.pdsk >= D_INCONSISTENT && in drbd_should_do_remote() 1263 return s.disk == D_UP_TO_DATE || s.pdsk == D_UP_TO_DATE; in may_do_writes()
|
D | drbd_receiver.c | 2691 if (device->state.pdsk < D_INCONSISTENT) { in receive_Data() 4108 (device->state.conn < C_CONNECTED || device->state.pdsk == D_DISKLESS)) { in receive_sizes() 4218 if (device->state.pdsk >= D_INCONSISTENT && in receive_sizes() 4255 if ((device->state.conn < C_CONNECTED || device->state.pdsk == D_DISKLESS) && in receive_uuids() 4278 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in receive_uuids() 4330 ms.pdsk = ps.disk; in convert_state() 4331 ms.disk = ps.pdsk; in convert_state() 4434 if ((os.pdsk == D_INCONSISTENT || os.pdsk == D_CONSISTENT) && in receive_state() 4471 if (os.pdsk == D_UP_TO_DATE && real_peer_disk == D_INCONSISTENT && in receive_state() 4547 ns.pdsk = real_peer_disk; in receive_state() [all …]
|
D | drbd_main.c | 1927 if (device->state.pdsk >= D_INCONSISTENT && device->state.conn >= C_CONNECTED) { in drbd_queue_unplug() 1946 .pdsk = D_UNKNOWN, in drbd_set_defaults()
|
/linux-6.6.21/include/linux/ |
D | drbd.h | 253 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */ member 269 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */
|