Searched refs:first_peer_device (Results 1 – 9 of 9) sorted by relevance
/drivers/block/drbd/ |
D | drbd_req.c | 243 req->epoch == atomic_read(&first_peer_device(device)->connection->current_tle_nr)) in drbd_req_complete() 244 start_new_tl_epoch(first_peer_device(device)->connection); in drbd_req_complete() 415 struct drbd_peer_device *peer_device = first_peer_device(device); in mod_rq_state() 560 struct drbd_peer_device *const peer_device = first_peer_device(device); in __req_mod() 982 struct drbd_connection *connection = first_peer_device(device)->connection; in maybe_pull_ahead() 1018 start_new_tl_epoch(first_peer_device(device)->connection); in maybe_pull_ahead() 1354 req->epoch = atomic_read(&first_peer_device(device)->connection->current_tle_nr); in drbd_send_and_submit() 1360 first_peer_device(device)->connection->current_tle_writes++; in drbd_send_and_submit() 1362 list_add_tail(&req->tl_requests, &first_peer_device(device)->connection->transfer_log); in drbd_send_and_submit() 1697 struct drbd_connection *connection = first_peer_device(device)->connection; in request_timer_fn()
|
D | drbd_worker.c | 448 &first_peer_device(device)->connection->sender_work, in resync_timer_fn() 585 struct drbd_peer_device *const peer_device = first_peer_device(device); in make_resync_request() 800 if (drbd_send_ov_request(first_peer_device(device), sector, size)) { in make_ov_request() 841 struct drbd_connection *connection = first_peer_device(device)->connection; in ping_peer() 851 struct drbd_connection *connection = first_peer_device(device)->connection; in drbd_resync_finished() 1394 return pd_send_unplug_remote(first_peer_device(device)); in w_send_write_hint() 1423 struct drbd_peer_device *const peer_device = first_peer_device(device); in w_send_out_of_sync() 1454 struct drbd_peer_device *const peer_device = first_peer_device(device); in w_send_dblock() 1487 struct drbd_peer_device *const peer_device = first_peer_device(device); in w_send_read_req() 1734 struct drbd_peer_device *peer_device = first_peer_device(device); in drbd_start_resync()
|
D | drbd_proc.c | 269 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_seq_show() 298 first_peer_device(device)->connection->epochs, in drbd_seq_show()
|
D | drbd_main.c | 291 struct drbd_connection *connection = first_peer_device(device)->connection; in tl_abort_disk_io() 1112 use_rle = rcu_dereference(first_peer_device(device)->connection->net_conf)->use_rle; in fill_bitmap_rle_bits() 1114 if (!use_rle || first_peer_device(device)->connection->agreed_pro_version < 90) in fill_bitmap_rle_bits() 1203 struct drbd_socket *sock = &first_peer_device(device)->connection->data; in send_bitmap_rle_or_plain() 1204 unsigned int header_size = drbd_header_size(first_peer_device(device)->connection); in send_bitmap_rle_or_plain() 1215 err = __send_command(first_peer_device(device)->connection, device->vnr, sock, in send_bitmap_rle_or_plain() 1236 …err = __send_command(first_peer_device(device)->connection, device->vnr, sock, P_BITMAP, len, NULL… in send_bitmap_rle_or_plain() 1296 struct drbd_socket *sock = &first_peer_device(device)->connection->data; in drbd_send_bitmap() 1919 &first_peer_device(device)->connection->sender_work, in drbd_queue_unplug() 2010 if (first_peer_device(device)->connection->receiver.t_state != NONE) in drbd_device_cleanup() [all …]
|
D | drbd_nl.c | 364 struct drbd_connection *connection = first_peer_device(device)->connection; in drbd_khelper() 617 struct drbd_peer_device *const peer_device = first_peer_device(device); in drbd_set_role() 1211 first_peer_device(device)->connection; in decide_on_discard_support() 1250 struct drbd_connection *connection = first_peer_device(device)->connection; in fixup_write_zeroes() 1311 if (first_peer_device(device)->connection->agreed_pro_version < 94) in drbd_reconsider_queue_parameters() 1314 else if (first_peer_device(device)->connection->agreed_pro_version == 94) in drbd_reconsider_queue_parameters() 1316 else if (first_peer_device(device)->connection->agreed_pro_version < 100) in drbd_reconsider_queue_parameters() 1733 peer_device = first_peer_device(device); in drbd_adm_attach() 2745 iass = test_bit(RESOLVE_CONFLICTS, &first_peer_device(device)->connection->flags); in resync_after_online_grow() 2802 if (rs.no_resync && first_peer_device(device)->connection->agreed_pro_version < 93) { in drbd_adm_resize() [all …]
|
D | drbd_state.c | 542 rv = is_valid_soft_transition(os, ns, first_peer_device(device)->connection); in _req_st_cond() 591 rv = is_valid_soft_transition(os, ns, first_peer_device(device)->connection); in drbd_req_state() 600 if (drbd_send_state_req(first_peer_device(device), mask, val)) { in drbd_req_state() 625 D_ASSERT(device, current != first_peer_device(device)->connection->worker.task); in drbd_req_state() 838 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in is_valid_state() 843 else if (conn_highest_peer(first_peer_device(device)->connection) == R_PRIMARY) in is_valid_state() 884 first_peer_device(device)->connection->agreed_pro_version < 88) in is_valid_state() 1227 if (first_peer_device(device)->connection->agreed_pro_version < 90) in set_ov_position() 1264 struct drbd_peer_device *peer_device = first_peer_device(device); in _drbd_set_state() 1526 D_ASSERT(device, current == first_peer_device(device)->connection->worker.task); in drbd_bitmap_io_from_worker() [all …]
|
D | drbd_int.h | 1011 static inline struct drbd_peer_device *first_peer_device(struct drbd_device *device) in first_peer_device() function 1908 first_peer_device(device)->connection; in drbd_device_post_work() 2134 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_get_max_buffers() 2177 if (first_peer_device(device)->connection->agreed_pro_version < 96) in drbd_state_is_stable() 2279 drbd_queue_work(&first_peer_device(device)-> in dec_ap_bio() 2293 return first_peer_device(device)->connection->agreed_pro_version >= 97 && in verify_can_do_stop_sector() 2294 first_peer_device(device)->connection->agreed_pro_version != 100; in verify_can_do_stop_sector()
|
D | drbd_actlog.c | 763 struct drbd_connection *connection = first_peer_device(device)->connection; in maybe_schedule_on_disk_bitmap_update()
|
D | drbd_receiver.c | 3218 struct drbd_peer_device *const peer_device = first_peer_device(device); in drbd_uuid_compare() 4760 unsigned int header_size = drbd_header_size(first_peer_device(device)->connection); in INFO_bm_xfer_stats()
|