Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/block/drbd/
Ddrbd_state.c853 else if (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.disk < D_UP_TO_DATE) in is_valid_state()
869 else if (ns.conn > C_CONNECTED && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
887 else if (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
946 && ns.pdsk == D_UP_TO_DATE in is_valid_soft_transition()
947 && ns.disk != D_UP_TO_DATE && ns.disk != D_DISKLESS in is_valid_soft_transition()
1108 ns.disk = D_UP_TO_DATE; in sanitize_state()
1110 ns.pdsk = D_UP_TO_DATE; in sanitize_state()
1115 disk_max = D_UP_TO_DATE; in sanitize_state()
1126 pdsk_min = D_UP_TO_DATE; in sanitize_state()
1127 pdsk_max = D_UP_TO_DATE; in sanitize_state()
[all …]
Ddrbd_strings.c59 [D_UP_TO_DATE] = "UpToDate",
98 return s > D_UP_TO_DATE ? "TOO_LARGE" : drbd_disk_s_names[s]; in drbd_disk_str()
Ddrbd_req.c900 if (device->state.disk == D_UP_TO_DATE) in drbd_may_do_local_read()
1006 if (!get_ldev_if_state(device, D_UP_TO_DATE)) in maybe_pull_ahead()
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()
1263 return s.disk == D_UP_TO_DATE || s.pdsk == D_UP_TO_DATE; in may_do_writes()
Ddrbd_worker.c951 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()
953 ns.disk = D_UP_TO_DATE; in drbd_resync_finished()
957 ns.disk = D_UP_TO_DATE; in drbd_resync_finished()
958 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()
1010 if (disk_state == D_UP_TO_DATE && pdsk_state == D_UP_TO_DATE) in drbd_resync_finished()
Ddrbd_nl.c533 if (conn_highest_disk(connection) == D_UP_TO_DATE) { in conn_try_outdate_peer()
654 (device->state.disk < D_UP_TO_DATE && in drbd_set_role()
657 val.disk = D_UP_TO_DATE; in drbd_set_role()
667 val.disk = D_UP_TO_DATE; in drbd_set_role()
1921 if (device->state.pdsk != D_UP_TO_DATE && device->ed_uuid && in drbd_adm_attach()
2074 ns.disk = D_UP_TO_DATE; in drbd_adm_attach()
4171 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in drbd_adm_new_c_uuid()
Ddrbd_receiver.c2833 if (!get_ldev_if_state(device, D_UP_TO_DATE)) { in receive_DataRequest()
4278 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in receive_uuids()
4435 real_peer_disk == D_UP_TO_DATE && in receive_state()
4436 os.conn > C_CONNECTED && os.disk == D_UP_TO_DATE) { in receive_state()
4459 if (os.conn == C_VERIFY_T && os.disk == D_UP_TO_DATE && in receive_state()
4460 peer_state.conn == C_CONNECTED && real_peer_disk == D_UP_TO_DATE) { in receive_state()
4471 if (os.pdsk == D_UP_TO_DATE && real_peer_disk == D_INCONSISTENT && in receive_state()
4473 real_peer_disk = D_UP_TO_DATE; in receive_state()
Ddrbd_int.h2133 case D_UP_TO_DATE: in drbd_state_is_stable()
Ddrbd_main.c891 D_ASSERT(device, device->state.disk == D_UP_TO_DATE); in drbd_gen_and_send_sync_uuid()
/linux-6.6.21/include/linux/
Ddrbd.h234 D_UP_TO_DATE, /* Only this disk state allows applications' IO ! */ enumerator