Searched refs:peer_req (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/block/drbd/ |
D | drbd_worker.c | 81 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 …]
|
D | drbd_receiver.c | 197 struct drbd_peer_request *peer_req, *tmp; in reclaim_finished_net_peer_reqs() local 204 list_for_each_entry_safe(peer_req, tmp, &device->net_ee, w.list) { in reclaim_finished_net_peer_reqs() 205 if (drbd_peer_req_has_active_page(peer_req)) in reclaim_finished_net_peer_reqs() 207 list_move(&peer_req->w.list, to_be_freed); in reclaim_finished_net_peer_reqs() 214 struct drbd_peer_request *peer_req, *t; in drbd_reclaim_net_peer_reqs() local 219 list_for_each_entry_safe(peer_req, t, &reclaimed, w.list) in drbd_reclaim_net_peer_reqs() 220 drbd_free_net_peer_req(device, peer_req); in drbd_reclaim_net_peer_reqs() 365 struct drbd_peer_request *peer_req; in drbd_alloc_peer_req() local 372 peer_req = mempool_alloc(&drbd_ee_mempool, gfp_mask & ~__GFP_HIGHMEM); in drbd_alloc_peer_req() 373 if (!peer_req) { in drbd_alloc_peer_req() [all …]
|
D | drbd_debugfs.c | 230 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()
|
D | drbd_main.c | 1376 struct drbd_peer_request *peer_req) in drbd_send_ack() argument 1379 cpu_to_be64(peer_req->i.sector), in drbd_send_ack() 1380 cpu_to_be32(peer_req->i.size), in drbd_send_ack() 1381 peer_req->block_id); in drbd_send_ack() 1396 struct drbd_peer_request *peer_req) in drbd_send_rs_deallocated() argument 1405 p->sector = cpu_to_be64(peer_req->i.sector); in drbd_send_rs_deallocated() 1406 p->blksize = cpu_to_be32(peer_req->i.size); in drbd_send_rs_deallocated() 1615 struct drbd_peer_request *peer_req) in _drbd_send_zc_ee() argument 1617 struct page *page = peer_req->pages; in _drbd_send_zc_ee() 1618 unsigned len = peer_req->i.size; in _drbd_send_zc_ee() [all …]
|
D | drbd_int.h | 1536 extern void drbd_endio_write_sec_final(struct drbd_peer_request *peer_req); 1678 static inline int drbd_peer_req_has_active_page(struct drbd_peer_request *peer_req) in drbd_peer_req_has_active_page() argument 1680 struct page *page = peer_req->pages; in drbd_peer_req_has_active_page()
|