Home
last modified time | relevance | path

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

/drivers/block/drbd/
Ddrbd_state.c137 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 …]
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.c524 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 …]
Ddrbd_worker.c947 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()
950 ns.pdsk = D_INCONSISTENT; in drbd_resync_finished()
954 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()
1002 pdsk_state = min_t(enum drbd_disk_state, pdsk_state, device->state.pdsk); in drbd_resync_finished()
1131 if (likely(device->state.pdsk >= D_INCONSISTENT)) { in w_e_end_rsdata_req()
1811 ns.pdsk = D_INCONSISTENT; in drbd_start_resync()
Ddrbd_req.c1051 if (device->state.pdsk != D_UP_TO_DATE) in do_remote_read()
1081 return s.pdsk == D_UP_TO_DATE || in drbd_should_do_remote()
1082 (s.pdsk >= D_INCONSISTENT && in drbd_should_do_remote()
1258 return s.disk == D_UP_TO_DATE || s.pdsk == D_UP_TO_DATE; in may_do_writes()
Ddrbd_proc.c279 drbd_disk_str(state.pdsk), in drbd_seq_show()
Ddrbd_receiver.c2672 if (device->state.pdsk < D_INCONSISTENT) { in receive_Data()
4093 (device->state.conn < C_CONNECTED || device->state.pdsk == D_DISKLESS)) { in receive_sizes()
4203 if (device->state.pdsk >= D_INCONSISTENT && in receive_sizes()
4240 if ((device->state.conn < C_CONNECTED || device->state.pdsk == D_DISKLESS) && in receive_uuids()
4263 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in receive_uuids()
4315 ms.pdsk = ps.disk; in convert_state()
4316 ms.disk = ps.pdsk; in convert_state()
4419 if ((os.pdsk == D_INCONSISTENT || os.pdsk == D_CONSISTENT) && in receive_state()
4456 if (os.pdsk == D_UP_TO_DATE && real_peer_disk == D_INCONSISTENT && in receive_state()
4532 ns.pdsk = real_peer_disk; in receive_state()
[all …]
Ddrbd_main.c1915 if (device->state.pdsk >= D_INCONSISTENT && device->state.conn >= C_CONNECTED) { in drbd_queue_unplug()
1934 .pdsk = D_UNKNOWN, in drbd_set_defaults()