Home
last modified time | relevance | path

Searched refs:peer_req (Results 1 – 5 of 5) sorted by relevance

/drivers/block/drbd/
Ddrbd_worker.c97 static void drbd_endio_read_sec_final(struct drbd_peer_request *peer_req) __releases(local) in drbd_endio_read_sec_final() argument
100 struct drbd_peer_device *peer_device = peer_req->peer_device; in drbd_endio_read_sec_final()
104 device->read_cnt += peer_req->i.size >> 9; in drbd_endio_read_sec_final()
105 list_del(&peer_req->w.list); in drbd_endio_read_sec_final()
108 if (test_bit(__EE_WAS_ERROR, &peer_req->flags)) in drbd_endio_read_sec_final()
112 drbd_queue_work(&peer_device->connection->sender_work, &peer_req->w); in drbd_endio_read_sec_final()
118 void drbd_endio_write_sec_final(struct drbd_peer_request *peer_req) __releases(local) in drbd_endio_write_sec_final() argument
121 struct drbd_peer_device *peer_device = peer_req->peer_device; in drbd_endio_write_sec_final()
132 i = peer_req->i; in drbd_endio_write_sec_final()
133 do_al_complete_io = peer_req->flags & EE_CALL_AL_COMPLETE_IO; in drbd_endio_write_sec_final()
[all …]
Ddrbd_receiver.c204 struct drbd_peer_request *peer_req, *tmp; in reclaim_finished_net_peer_reqs() local
211 list_for_each_entry_safe(peer_req, tmp, &device->net_ee, w.list) { in reclaim_finished_net_peer_reqs()
212 if (drbd_peer_req_has_active_page(peer_req)) in reclaim_finished_net_peer_reqs()
214 list_move(&peer_req->w.list, to_be_freed); in reclaim_finished_net_peer_reqs()
221 struct drbd_peer_request *peer_req, *t; in drbd_kick_lo_and_reclaim_net() local
227 list_for_each_entry_safe(peer_req, t, &reclaimed, w.list) in drbd_kick_lo_and_reclaim_net()
228 drbd_free_net_peer_req(device, peer_req); in drbd_kick_lo_and_reclaim_net()
345 struct drbd_peer_request *peer_req; in drbd_alloc_peer_req() local
352 peer_req = mempool_alloc(drbd_ee_mempool, gfp_mask & ~__GFP_HIGHMEM); in drbd_alloc_peer_req()
353 if (!peer_req) { in drbd_alloc_peer_req()
[all …]
Ddrbd_debugfs.c229 static void seq_print_peer_request_flags(struct seq_file *m, struct drbd_peer_request *peer_req) in seq_print_peer_request_flags() argument
231 unsigned long f = peer_req->flags; in seq_print_peer_request_flags()
256 struct drbd_peer_request *peer_req; in seq_print_peer_request() local
257 list_for_each_entry(peer_req, lh, w.list) { in seq_print_peer_request()
258 if (reported_preparing && !(peer_req->flags & EE_SUBMITTED)) in seq_print_peer_request()
265 (unsigned long long)peer_req->i.sector, peer_req->i.size >> 9, in seq_print_peer_request()
266 (peer_req->flags & EE_WRITE) ? 'W' : 'R', in seq_print_peer_request()
267 jiffies_to_msecs(now - peer_req->submit_jif)); in seq_print_peer_request()
268 seq_print_peer_request_flags(m, peer_req); in seq_print_peer_request()
269 if (peer_req->flags & EE_SUBMITTED) in seq_print_peer_request()
Ddrbd_main.c1361 struct drbd_peer_request *peer_req) in drbd_send_ack() argument
1364 cpu_to_be64(peer_req->i.sector), in drbd_send_ack()
1365 cpu_to_be32(peer_req->i.size), in drbd_send_ack()
1366 peer_req->block_id); in drbd_send_ack()
1587 struct drbd_peer_request *peer_req) in _drbd_send_zc_ee() argument
1589 struct page *page = peer_req->pages; in _drbd_send_zc_ee()
1590 unsigned len = peer_req->i.size; in _drbd_send_zc_ee()
1709 struct drbd_peer_request *peer_req) in drbd_send_block() argument
1725 p->sector = cpu_to_be64(peer_req->i.sector); in drbd_send_block()
1726 p->block_id = peer_req->block_id; in drbd_send_block()
[all …]
Ddrbd_int.h1535 extern void drbd_endio_write_sec_final(struct drbd_peer_request *peer_req);
1687 static inline int drbd_peer_req_has_active_page(struct drbd_peer_request *peer_req) in drbd_peer_req_has_active_page() argument
1689 struct page *page = peer_req->pages; in drbd_peer_req_has_active_page()