Home
last modified time | relevance | path

Searched refs:peer_device (Results 1 – 10 of 10) sorted by relevance

/drivers/block/drbd/
Ddrbd_receiver.c223 struct drbd_peer_device *peer_device; in conn_reclaim_net_peer_reqs() local
227 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_reclaim_net_peer_reqs()
228 struct drbd_device *device = peer_device->device; in conn_reclaim_net_peer_reqs()
261 struct page *drbd_alloc_pages(struct drbd_peer_device *peer_device, unsigned int number, in drbd_alloc_pages() argument
264 struct drbd_device *device = peer_device->device; in drbd_alloc_pages()
271 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages()
359 drbd_alloc_peer_req(struct drbd_peer_device *peer_device, u64 id, sector_t sector, in drbd_alloc_peer_req() argument
362 struct drbd_device *device = peer_device->device; in drbd_alloc_peer_req()
378 page = drbd_alloc_pages(peer_device, nr_pages, in drbd_alloc_peer_req()
390 peer_req->peer_device = peer_device; in drbd_alloc_peer_req()
[all …]
Ddrbd_main.c485 struct drbd_peer_device *peer_device; in conn_lowest_minor() local
489 peer_device = idr_get_next(&connection->peer_devices, &vnr); in conn_lowest_minor()
490 if (peer_device) in conn_lowest_minor()
491 minor = device_to_minor(peer_device->device); in conn_lowest_minor()
636 void *drbd_prepare_command(struct drbd_peer_device *peer_device, struct drbd_socket *sock) in drbd_prepare_command() argument
638 return conn_prepare_command(peer_device->connection, sock); in drbd_prepare_command()
690 int drbd_send_command(struct drbd_peer_device *peer_device, struct drbd_socket *sock, in drbd_send_command() argument
696 err = __send_command(peer_device->connection, peer_device->device->vnr, in drbd_send_command()
722 int drbd_send_sync_param(struct drbd_peer_device *peer_device) in drbd_send_sync_param() argument
727 const int apv = peer_device->connection->agreed_pro_version; in drbd_send_sync_param()
[all …]
Ddrbd_worker.c84 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()
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()
346 struct drbd_peer_device *peer_device = peer_req->peer_device; in w_e_send_csum() local
347 struct drbd_device *device = peer_device->device; in w_e_send_csum()
[all …]
Ddrbd_state.c132 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 …]
Ddrbd_debugfs.h21 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
Ddrbd_req.c321 static void set_if_null_req_next(struct drbd_peer_device *peer_device, struct drbd_request *req) in set_if_null_req_next() argument
323 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in set_if_null_req_next()
330 static void advance_conn_req_next(struct drbd_peer_device *peer_device, struct drbd_request *req) in advance_conn_req_next() argument
332 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in advance_conn_req_next()
347 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
349 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in set_if_null_req_ack_pending()
356 static void advance_conn_req_ack_pending(struct drbd_peer_device *peer_device, struct drbd_request … in advance_conn_req_ack_pending() argument
358 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in advance_conn_req_ack_pending()
373 static void set_if_null_req_not_net_done(struct drbd_peer_device *peer_device, struct drbd_request … in set_if_null_req_not_net_done() argument
375 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in set_if_null_req_not_net_done()
[all …]
Ddrbd_nl.c446 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()
1273 struct drbd_peer_device *peer_device = first_peer_device(device); in decide_on_write_same_support() local
1274 struct drbd_connection *connection = peer_device->connection; in decide_on_write_same_support()
[all …]
Ddrbd_debugfs.c827 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()
Ddrbd_int.h81 #define __drbd_printk_peer_device(level, peer_device, fmt, args...) \ argument
82 dev_printk(level, disk_to_dev((peer_device)->device->vdisk), fmt, ## args)
396 struct drbd_peer_device *peer_device; member
1044 #define for_each_peer_device(peer_device, device) \ argument
1045 list_for_each_entry(peer_device, &device->peer_devices, peer_devices)
1047 #define for_each_peer_device_rcu(peer_device, device) \ argument
1048 list_for_each_entry_rcu(peer_device, &device->peer_devices, peer_devices)
1050 #define for_each_peer_device_safe(peer_device, tmp, device) \ argument
1051 list_for_each_entry_safe(peer_device, tmp, &device->peer_devices, peer_devices)
Ddrbd_state_change.h25 struct drbd_peer_device *peer_device; member