/kernel/linux/linux-5.10/drivers/block/drbd/ |
H A D | drbd_debugfs.c | 667 if (get_ldev_if_state(device, D_FAILED)) { in device_resync_extents_show() 682 if (get_ldev_if_state(device, D_FAILED)) { in device_act_log_extents_show() 724 if (!get_ldev_if_state(device, D_FAILED)) in device_data_gen_id_show()
|
H A D | drbd_proc.c | 311 if (drbd_proc_details >= 1 && get_ldev_if_state(device, D_FAILED)) { in drbd_seq_show()
|
H A D | drbd_actlog.c | 154 else if (!get_ldev_if_state(device, D_ATTACHING)) { in _drbd_md_sync_page_io() 156 drbd_err(device, "ASSERT FAILED: get_ldev_if_state() == 1 in _drbd_md_sync_page_io()\n"); in _drbd_md_sync_page_io() 1176 if (get_ldev_if_state(device, D_FAILED)) { /* Makes sure ->resync is there. */ in drbd_rs_cancel_all() 1201 if (get_ldev_if_state(device, D_FAILED)) { in drbd_rs_del_all()
|
H A D | drbd_bitmap.c | 776 if (!get_ldev_if_state(device, D_NEGOTIATING)) in drbd_bm_total_weight() 1063 if (!get_ldev_if_state(device, D_ATTACHING)) { /* put is in drbd_bm_aio_ctx_destroy() */ in __must_hold() 1064 drbd_err(device, "ASSERT FAILED: get_ldev_if_state() == 1 in bm_rw()\n"); in __must_hold()
|
H A D | drbd_main.c | 838 if (!get_ldev_if_state(device, D_NEGOTIATING)) in _drbd_send_uuids() 877 if (get_ldev_if_state(device, D_NEGOTIATING)) { in drbd_print_uuids() 964 if (get_ldev_if_state(device, D_NEGOTIATING)) { in drbd_send_sizes() 3088 if (!get_ldev_if_state(device, D_FAILED)) in drbd_md_sync()
|
H A D | drbd_worker.c | 612 get_ldev_if_state(device,D_FAILED) would be sufficient, but in make_resync_request() 1128 if (get_ldev_if_state(device, D_FAILED)) { in w_e_end_rsdata_req() 1798 || !get_ldev_if_state(device, D_NEGOTIATING)) { in drbd_start_resync() 1950 /* we cannot assert local_cnt == 0 here, as get_ldev_if_state will in go_diskless()
|
H A D | drbd_int.h | 2084 #define get_ldev_if_state(_device, _min_state) \ macro 2087 #define get_ldev(_device) get_ldev_if_state(_device, D_INCONSISTENT)
|
H A D | drbd_req.c | 146 if (get_ldev_if_state(device, D_FAILED)) { in drbd_req_destroy() 995 if (!get_ldev_if_state(device, D_UP_TO_DATE)) in maybe_pull_ahead()
|
H A D | drbd_receiver.c | 2868 if (!get_ldev_if_state(device, D_UP_TO_DATE)) { in receive_DataRequest() 4548 get_ldev_if_state(device, D_NEGOTIATING)) { in receive_state() 4659 if (get_ldev_if_state(device, D_NEGOTIATING)) { in receive_sync_uuid() 5861 if (get_ldev_if_state(device, D_FAILED)) { in got_NegRSDReply()
|
H A D | drbd_nl.c | 452 if (get_ldev_if_state(device, D_CONSISTENT)) { in highest_fencing_policy() 1972 if (!get_ldev_if_state(device, D_ATTACHING)) in drbd_adm_attach() 3202 if (get_ldev_if_state(device, D_ATTACHING)) { in drbd_adm_resume_io()
|
H A D | drbd_state.c | 1092 get_ldev_if_state(device, D_NEGOTIATING)) { in sanitize_state()
|
/kernel/linux/linux-6.6/drivers/block/drbd/ |
H A D | drbd_debugfs.c | 667 if (get_ldev_if_state(device, D_FAILED)) { in device_resync_extents_show() 682 if (get_ldev_if_state(device, D_FAILED)) { in device_act_log_extents_show() 724 if (!get_ldev_if_state(device, D_FAILED)) in device_data_gen_id_show()
|
H A D | drbd_proc.c | 311 if (drbd_proc_details >= 1 && get_ldev_if_state(device, D_FAILED)) { in drbd_seq_show()
|
H A D | drbd_actlog.c | 154 else if (!get_ldev_if_state(device, D_ATTACHING)) { in _drbd_md_sync_page_io() 156 drbd_err(device, "ASSERT FAILED: get_ldev_if_state() == 1 in _drbd_md_sync_page_io()\n"); in _drbd_md_sync_page_io() 1179 if (get_ldev_if_state(device, D_FAILED)) { /* Makes sure ->resync is there. */ in drbd_rs_cancel_all() 1204 if (get_ldev_if_state(device, D_FAILED)) { in drbd_rs_del_all()
|
H A D | drbd_bitmap.c | 776 if (!get_ldev_if_state(device, D_NEGOTIATING)) in drbd_bm_total_weight() 1095 if (!get_ldev_if_state(device, D_ATTACHING)) { /* put is in drbd_bm_aio_ctx_destroy() */ in __must_hold() 1096 drbd_err(device, "ASSERT FAILED: get_ldev_if_state() == 1 in bm_rw()\n"); in __must_hold()
|
H A D | drbd_main.c | 829 if (!get_ldev_if_state(device, D_NEGOTIATING)) in _drbd_send_uuids() 868 if (get_ldev_if_state(device, D_NEGOTIATING)) { in drbd_print_uuids() 930 if (get_ldev_if_state(device, D_NEGOTIATING)) { in drbd_send_sizes() 3051 if (!get_ldev_if_state(device, D_FAILED)) in drbd_md_sync()
|
H A D | drbd_int.h | 2014 #define get_ldev_if_state(_device, _min_state) \ macro 2017 #define get_ldev(_device) get_ldev_if_state(_device, D_INCONSISTENT)
|
H A D | drbd_req.c | 145 if (get_ldev_if_state(device, D_FAILED)) { in drbd_req_destroy() 1006 if (!get_ldev_if_state(device, D_UP_TO_DATE)) in maybe_pull_ahead()
|
H A D | drbd_worker.c | 609 get_ldev_if_state(device,D_FAILED) would be sufficient, but in make_resync_request() 1127 if (get_ldev_if_state(device, D_FAILED)) { in w_e_end_rsdata_req() 1803 || !get_ldev_if_state(device, D_NEGOTIATING)) { in drbd_start_resync() 1957 /* we cannot assert local_cnt == 0 here, as get_ldev_if_state will in go_diskless()
|
H A D | drbd_receiver.c | 2833 if (!get_ldev_if_state(device, D_UP_TO_DATE)) { in receive_DataRequest() 4501 get_ldev_if_state(device, D_NEGOTIATING)) { in receive_state() 4612 if (get_ldev_if_state(device, D_NEGOTIATING)) { in receive_sync_uuid() 5811 if (get_ldev_if_state(device, D_FAILED)) { in got_NegRSDReply()
|
H A D | drbd_nl.c | 452 if (get_ldev_if_state(device, D_CONSISTENT)) { in highest_fencing_policy() 1911 if (!get_ldev_if_state(device, D_ATTACHING)) in drbd_adm_attach() 3146 if (get_ldev_if_state(device, D_ATTACHING)) { in drbd_adm_resume_io()
|
H A D | drbd_state.c | 1092 get_ldev_if_state(device, D_NEGOTIATING)) { in sanitize_state()
|