/drivers/block/drbd/ |
D | drbd_worker.c | 84 struct drbd_peer_device *peer_device = peer_req->peer_device; in drbd_endio_read_sec_final() local 85 struct drbd_device *device = peer_device->device; in drbd_endio_read_sec_final() 96 drbd_queue_work(&peer_device->connection->sender_work, &peer_req->w); in drbd_endio_read_sec_final() 105 struct drbd_peer_device *peer_device = peer_req->peer_device; in drbd_endio_write_sec_final() local 106 struct drbd_device *device = peer_device->device; in drbd_endio_write_sec_final() 107 struct drbd_connection *connection = peer_device->connection; in drbd_endio_write_sec_final() 127 drbd_set_out_of_sync(peer_device, peer_req->i.sector, peer_req->i.size); in drbd_endio_write_sec_final() 151 if (!queue_work(connection->ack_sender, &peer_device->send_acks_work)) in drbd_endio_write_sec_final() 174 struct drbd_device *device = peer_req->peer_device->device; in drbd_peer_request_endio() 341 struct drbd_peer_device *peer_device = peer_req->peer_device; in w_e_send_csum() local [all …]
|
D | drbd_receiver.c | 224 struct drbd_peer_device *peer_device; in conn_reclaim_net_peer_reqs() local 228 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_reclaim_net_peer_reqs() 229 struct drbd_device *device = peer_device->device; in conn_reclaim_net_peer_reqs() 262 struct page *drbd_alloc_pages(struct drbd_peer_device *peer_device, unsigned int number, in drbd_alloc_pages() argument 265 struct drbd_device *device = peer_device->device; in drbd_alloc_pages() 272 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages() 360 drbd_alloc_peer_req(struct drbd_peer_device *peer_device, u64 id, sector_t sector, in drbd_alloc_peer_req() argument 363 struct drbd_device *device = peer_device->device; in drbd_alloc_peer_req() 379 page = drbd_alloc_pages(peer_device, nr_pages, in drbd_alloc_peer_req() 391 peer_req->peer_device = peer_device; in drbd_alloc_peer_req() [all …]
|
D | drbd_main.c | 233 struct drbd_peer_device *peer_device; in tl_release() local 236 peer_device = conn_peer_device(connection, req->device->vnr); in tl_release() 237 _req_mod(req, BARRIER_ACKED, peer_device); in tl_release() 260 struct drbd_peer_device *peer_device; in _tl_restart() local 264 peer_device = conn_peer_device(connection, req->device->vnr); in _tl_restart() 265 _req_mod(req, what, peer_device); in _tl_restart() 476 struct drbd_peer_device *peer_device; in conn_lowest_minor() local 480 peer_device = idr_get_next(&connection->peer_devices, &vnr); in conn_lowest_minor() 481 if (peer_device) in conn_lowest_minor() 482 minor = device_to_minor(peer_device->device); in conn_lowest_minor() [all …]
|
D | drbd_state.c | 132 struct drbd_peer_device *peer_device; in remember_old_state() local 134 peer_device = conn_peer_device(connection, device->vnr); in remember_old_state() 135 peer_device_state_change->peer_device = peer_device; in remember_old_state() 196 peer_device_state_change->peer_device->device; in remember_new_state() 296 struct drbd_peer_device *peer_device; in conn_all_vols_unconf() local 301 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_all_vols_unconf() 302 struct drbd_device *device = peer_device->device; in conn_all_vols_unconf() 338 struct drbd_peer_device *peer_device; in conn_highest_role() local 342 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_highest_role() 343 struct drbd_device *device = peer_device->device; in conn_highest_role() [all …]
|
D | drbd_int.h | 130 extern void INFO_bm_xfer_stats(struct drbd_peer_device *peer_device, 323 struct drbd_peer_device *peer_device; member 545 struct drbd_peer_device *peer_device; member 548 int (*io_fn)(struct drbd_device *device, struct drbd_peer_device *peer_device); 974 #define for_each_peer_device(peer_device, device) \ argument 975 list_for_each_entry(peer_device, &device->peer_devices, peer_devices) 977 #define for_each_peer_device_rcu(peer_device, device) \ argument 978 list_for_each_entry_rcu(peer_device, &device->peer_devices, peer_devices) 980 #define for_each_peer_device_safe(peer_device, tmp, device) \ argument 981 list_for_each_entry_safe(peer_device, tmp, &device->peer_devices, peer_devices) [all …]
|
D | drbd_req.c | 125 struct drbd_peer_device *peer_device = first_peer_device(device); in drbd_req_destroy() local 128 drbd_set_out_of_sync(peer_device, req->i.sector, req->i.size); in drbd_req_destroy() 131 drbd_set_in_sync(peer_device, req->i.sector, req->i.size); in drbd_req_destroy() 320 static void set_if_null_req_next(struct drbd_peer_device *peer_device, struct drbd_request *req) in set_if_null_req_next() argument 322 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in set_if_null_req_next() 329 static void advance_conn_req_next(struct drbd_peer_device *peer_device, struct drbd_request *req) in advance_conn_req_next() argument 331 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in advance_conn_req_next() 350 static void set_if_null_req_ack_pending(struct drbd_peer_device *peer_device, struct drbd_request *… in set_if_null_req_ack_pending() argument 352 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in set_if_null_req_ack_pending() 359 static void advance_conn_req_ack_pending(struct drbd_peer_device *peer_device, struct drbd_request … in advance_conn_req_ack_pending() argument [all …]
|
D | drbd_debugfs.h | 21 void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device); 22 void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device); 37 static inline void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) { } in drbd_debugfs_peer_device_add() argument 38 static inline void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) { } in drbd_debugfs_peer_device_cleanup() argument
|
D | drbd_req.h | 270 struct drbd_peer_device *peer_device, 285 struct drbd_peer_device *peer_device) in _req_mod() argument 292 rv = __req_mod(req, what, peer_device, &m); in _req_mod() 305 struct drbd_peer_device *peer_device) in req_mod() argument 313 rv = __req_mod(req, what, peer_device, &m); in req_mod()
|
D | drbd_nl.c | 446 struct drbd_peer_device *peer_device; in highest_fencing_policy() local 450 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in highest_fencing_policy() 451 struct drbd_device *device = peer_device->device; in highest_fencing_policy() 454 rcu_dereference(peer_device->device->ldev->disk_conf); in highest_fencing_policy() 617 struct drbd_peer_device *const peer_device = first_peer_device(device); in drbd_set_role() local 618 struct drbd_connection *const connection = peer_device ? peer_device->connection : NULL; in drbd_set_role() 747 drbd_send_uuids(peer_device); in drbd_set_role() 748 drbd_send_current_state(peer_device); in drbd_set_role() 1613 struct drbd_peer_device *peer_device; in drbd_adm_disk_opts() local 1615 for_each_peer_device(peer_device, device) in drbd_adm_disk_opts() [all …]
|
D | drbd_polymorph_printk.h | 22 #define __drbd_printk_drbd_peer_device_prep(peer_device) \ argument 25 __d = (peer_device)->device; \
|
D | drbd_actlog.c | 738 void drbd_advance_rs_marks(struct drbd_peer_device *peer_device, unsigned long still_to_go) in drbd_advance_rs_marks() argument 740 struct drbd_device *device = peer_device->device; in drbd_advance_rs_marks() 847 int __drbd_change_sync(struct drbd_peer_device *peer_device, sector_t sector, int size, in __drbd_change_sync() argument 851 struct drbd_device *device = peer_device->device; in __drbd_change_sync() 1014 int drbd_try_rs_begin_io(struct drbd_peer_device *peer_device, sector_t sector) in drbd_try_rs_begin_io() argument 1016 struct drbd_device *device = peer_device->device; in drbd_try_rs_begin_io() 1022 bool throttle = drbd_rs_should_slow_down(peer_device, sector, true); in drbd_try_rs_begin_io()
|
D | drbd_debugfs.c | 827 void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) in drbd_debugfs_peer_device_add() argument 829 struct dentry *conn_dir = peer_device->connection->debugfs_conn; in drbd_debugfs_peer_device_add() 833 snprintf(vnr_buf, sizeof(vnr_buf), "%u", peer_device->device->vnr); in drbd_debugfs_peer_device_add() 835 peer_device->debugfs_peer_dev = dentry; in drbd_debugfs_peer_device_add() 838 void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) in drbd_debugfs_peer_device_cleanup() argument 840 drbd_debugfs_remove(&peer_device->debugfs_peer_dev); in drbd_debugfs_peer_device_cleanup()
|
D | drbd_state_change.h | 25 struct drbd_peer_device *peer_device; member
|
D | drbd_bitmap.c | 1218 struct drbd_peer_device *peer_device) __must_hold(local) in drbd_bm_read() argument 1231 struct drbd_peer_device *peer_device) __must_hold(local) in drbd_bm_write() argument 1243 struct drbd_peer_device *peer_device) __must_hold(local) in drbd_bm_write_all() argument 1270 struct drbd_peer_device *peer_device) __must_hold(local) in drbd_bm_write_copy_pages() argument
|