Home
last modified time | relevance | path

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

/drivers/block/drbd/
Ddrbd_worker.c81 static void drbd_endio_read_sec_final(struct drbd_peer_request *peer_req) __releases(local) in drbd_endio_read_sec_final() argument
84 struct drbd_peer_device *peer_device = peer_req->peer_device; in drbd_endio_read_sec_final()
88 device->read_cnt += peer_req->i.size >> 9; in drbd_endio_read_sec_final()
89 list_del(&peer_req->w.list); in drbd_endio_read_sec_final()
92 if (test_bit(__EE_WAS_ERROR, &peer_req->flags)) in drbd_endio_read_sec_final()
96 drbd_queue_work(&peer_device->connection->sender_work, &peer_req->w); in drbd_endio_read_sec_final()
102 void drbd_endio_write_sec_final(struct drbd_peer_request *peer_req) __releases(local) in drbd_endio_write_sec_final() argument
105 struct drbd_peer_device *peer_device = peer_req->peer_device; in drbd_endio_write_sec_final()
117 i = peer_req->i; in drbd_endio_write_sec_final()
118 do_al_complete_io = peer_req->flags & EE_CALL_AL_COMPLETE_IO; in drbd_endio_write_sec_final()
[all …]
Ddrbd_receiver.c196 struct drbd_peer_request *peer_req, *tmp; in reclaim_finished_net_peer_reqs() local
203 list_for_each_entry_safe(peer_req, tmp, &device->net_ee, w.list) { in reclaim_finished_net_peer_reqs()
204 if (drbd_peer_req_has_active_page(peer_req)) in reclaim_finished_net_peer_reqs()
206 list_move(&peer_req->w.list, to_be_freed); in reclaim_finished_net_peer_reqs()
213 struct drbd_peer_request *peer_req, *t; in drbd_reclaim_net_peer_reqs() local
218 list_for_each_entry_safe(peer_req, t, &reclaimed, w.list) in drbd_reclaim_net_peer_reqs()
219 drbd_free_net_peer_req(device, peer_req); in drbd_reclaim_net_peer_reqs()
364 struct drbd_peer_request *peer_req; in drbd_alloc_peer_req() local
371 peer_req = mempool_alloc(&drbd_ee_mempool, gfp_mask & ~__GFP_HIGHMEM); in drbd_alloc_peer_req()
372 if (!peer_req) { in drbd_alloc_peer_req()
[all …]
Ddrbd_debugfs.c230 static void seq_print_peer_request_flags(struct seq_file *m, struct drbd_peer_request *peer_req) in seq_print_peer_request_flags() argument
232 unsigned long f = peer_req->flags; in seq_print_peer_request_flags()
251 struct drbd_peer_request *peer_req; in seq_print_peer_request() local
252 list_for_each_entry(peer_req, lh, w.list) { in seq_print_peer_request()
253 if (reported_preparing && !(peer_req->flags & EE_SUBMITTED)) in seq_print_peer_request()
260 (unsigned long long)peer_req->i.sector, peer_req->i.size >> 9, in seq_print_peer_request()
261 (peer_req->flags & EE_WRITE) ? 'W' : 'R', in seq_print_peer_request()
262 jiffies_to_msecs(now - peer_req->submit_jif)); in seq_print_peer_request()
263 seq_print_peer_request_flags(m, peer_req); in seq_print_peer_request()
264 if (peer_req->flags & EE_SUBMITTED) in seq_print_peer_request()
Ddrbd_main.c1383 struct drbd_peer_request *peer_req) in drbd_send_ack() argument
1386 cpu_to_be64(peer_req->i.sector), in drbd_send_ack()
1387 cpu_to_be32(peer_req->i.size), in drbd_send_ack()
1388 peer_req->block_id); in drbd_send_ack()
1403 struct drbd_peer_request *peer_req) in drbd_send_rs_deallocated() argument
1412 p->sector = cpu_to_be64(peer_req->i.sector); in drbd_send_rs_deallocated()
1413 p->blksize = cpu_to_be32(peer_req->i.size); in drbd_send_rs_deallocated()
1626 struct drbd_peer_request *peer_req) in _drbd_send_zc_ee() argument
1628 struct page *page = peer_req->pages; in _drbd_send_zc_ee()
1629 unsigned len = peer_req->i.size; in _drbd_send_zc_ee()
[all …]
Ddrbd_int.h339 #define peer_req_op(peer_req) \ argument
340 ((peer_req)->opf & REQ_OP_MASK)
1482 extern void drbd_endio_write_sec_final(struct drbd_peer_request *peer_req);
1494 extern int drbd_submit_peer_request(struct drbd_peer_request *peer_req);
1623 static inline int drbd_peer_req_has_active_page(struct drbd_peer_request *peer_req) in drbd_peer_req_has_active_page() argument
1625 struct page *page = peer_req->pages; in drbd_peer_req_has_active_page()