Searched refs:pdsk (Results 1 – 8 of 8) sorted by relevance
/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 | 952 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished() 955 ns.pdsk = D_INCONSISTENT; in drbd_resync_finished() 959 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished() 1007 pdsk_state = min_t(enum drbd_disk_state, pdsk_state, device->state.pdsk); in drbd_resync_finished() 1136 if (likely(device->state.pdsk >= D_INCONSISTENT)) { in w_e_end_rsdata_req() 1812 ns.pdsk = D_INCONSISTENT; in drbd_start_resync()
|
D | drbd_req.c | 1044 if (device->state.pdsk != D_UP_TO_DATE) in do_remote_read() 1074 return s.pdsk == D_UP_TO_DATE || in drbd_should_do_remote() 1075 (s.pdsk >= D_INCONSISTENT && in drbd_should_do_remote() 1250 return s.disk == D_UP_TO_DATE || s.pdsk == D_UP_TO_DATE; in may_do_writes()
|
D | drbd_proc.c | 279 drbd_disk_str(state.pdsk), in drbd_seq_show()
|
D | drbd_receiver.c | 2725 if (device->state.pdsk < D_INCONSISTENT) { in receive_Data() 4151 (device->state.conn < C_CONNECTED || device->state.pdsk == D_DISKLESS)) { in receive_sizes() 4263 if (device->state.pdsk >= D_INCONSISTENT && in receive_sizes() 4302 if ((device->state.conn < C_CONNECTED || device->state.pdsk == D_DISKLESS) && in receive_uuids() 4325 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in receive_uuids() 4377 ms.pdsk = ps.disk; in convert_state() 4378 ms.disk = ps.pdsk; in convert_state() 4481 if ((os.pdsk == D_INCONSISTENT || os.pdsk == D_CONSISTENT) && in receive_state() 4518 if (os.pdsk == D_UP_TO_DATE && real_peer_disk == D_INCONSISTENT && in receive_state() 4594 ns.pdsk = real_peer_disk; in receive_state() [all …]
|
D | drbd_main.c | 1956 if (device->state.pdsk >= D_INCONSISTENT && device->state.conn >= C_CONNECTED) { in drbd_queue_unplug() 1975 .pdsk = D_UNKNOWN, in drbd_set_defaults()
|