Home
last modified time | relevance | path

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

/Linux-v5.4/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.c904 if (device->state.disk == D_UP_TO_DATE) in drbd_may_do_local_read()
1012 if (!get_ldev_if_state(device, D_UP_TO_DATE)) in maybe_pull_ahead()
1061 if (device->state.pdsk != D_UP_TO_DATE) in do_remote_read()
1091 return s.pdsk == D_UP_TO_DATE || in drbd_should_do_remote()
1268 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.c534 if (conn_highest_disk(connection) == D_UP_TO_DATE) { in conn_try_outdate_peer()
655 (device->state.disk < D_UP_TO_DATE && in drbd_set_role()
658 val.disk = D_UP_TO_DATE; in drbd_set_role()
668 val.disk = D_UP_TO_DATE; in drbd_set_role()
1989 if (device->state.pdsk != D_UP_TO_DATE && device->ed_uuid && in drbd_adm_attach()
2140 ns.disk = D_UP_TO_DATE; in drbd_adm_attach()
4240 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in drbd_adm_new_c_uuid()
Ddrbd_receiver.c2867 if (!get_ldev_if_state(device, D_UP_TO_DATE)) { in receive_DataRequest()
4324 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in receive_uuids()
4481 real_peer_disk == D_UP_TO_DATE && in receive_state()
4482 os.conn > C_CONNECTED && os.disk == D_UP_TO_DATE) { in receive_state()
4505 if (os.conn == C_VERIFY_T && os.disk == D_UP_TO_DATE && in receive_state()
4506 peer_state.conn == C_CONNECTED && real_peer_disk == D_UP_TO_DATE) { in receive_state()
4517 if (os.pdsk == D_UP_TO_DATE && real_peer_disk == D_INCONSISTENT && in receive_state()
4519 real_peer_disk = D_UP_TO_DATE; in receive_state()
Ddrbd_main.c896 D_ASSERT(device, device->state.disk == D_UP_TO_DATE); in drbd_gen_and_send_sync_uuid()
2445 if (!get_ldev_if_state(device, D_UP_TO_DATE)) in drbd_congested()
Ddrbd_int.h2232 case D_UP_TO_DATE: in drbd_state_is_stable()
/Linux-v5.4/include/linux/
Ddrbd.h241 D_UP_TO_DATE, /* Only this disk state allows applications' IO ! */ enumerator