Lines Matching refs:obj_request

340 	struct rbd_obj_request	*obj_request;	/* obj req initiator */  member
1266 static void rbd_obj_request_put(struct rbd_obj_request *obj_request) in rbd_obj_request_put() argument
1268 rbd_assert(obj_request != NULL); in rbd_obj_request_put()
1269 dout("%s: obj %p (was %d)\n", __func__, obj_request, in rbd_obj_request_put()
1270 kref_read(&obj_request->kref)); in rbd_obj_request_put()
1271 kref_put(&obj_request->kref, rbd_obj_request_destroy); in rbd_obj_request_put()
1275 struct rbd_obj_request *obj_request) in rbd_img_obj_request_add() argument
1277 rbd_assert(obj_request->img_request == NULL); in rbd_img_obj_request_add()
1280 obj_request->img_request = img_request; in rbd_img_obj_request_add()
1281 dout("%s: img %p obj %p\n", __func__, img_request, obj_request); in rbd_img_obj_request_add()
1285 struct rbd_obj_request *obj_request) in rbd_img_obj_request_del() argument
1287 dout("%s: img %p obj %p\n", __func__, img_request, obj_request); in rbd_img_obj_request_del()
1288 list_del(&obj_request->ex.oe_item); in rbd_img_obj_request_del()
1289 rbd_assert(obj_request->img_request == img_request); in rbd_img_obj_request_del()
1290 rbd_obj_request_put(obj_request); in rbd_img_obj_request_del()
1390 struct rbd_obj_request *obj_request = osd_req->r_priv; in rbd_osd_format_read() local
1391 struct rbd_device *rbd_dev = obj_request->img_request->rbd_dev; in rbd_osd_format_read()
1395 osd_req->r_snapid = obj_request->img_request->snap_id; in rbd_osd_format_read()
1400 struct rbd_obj_request *obj_request = osd_req->r_priv; in rbd_osd_format_write() local
1404 osd_req->r_data_offset = obj_request->ex.oe_off; in rbd_osd_format_write()
1451 struct rbd_obj_request *obj_request; in rbd_obj_request_create() local
1453 obj_request = kmem_cache_zalloc(rbd_obj_request_cache, GFP_NOIO); in rbd_obj_request_create()
1454 if (!obj_request) in rbd_obj_request_create()
1457 ceph_object_extent_init(&obj_request->ex); in rbd_obj_request_create()
1458 INIT_LIST_HEAD(&obj_request->osd_reqs); in rbd_obj_request_create()
1459 mutex_init(&obj_request->state_mutex); in rbd_obj_request_create()
1460 kref_init(&obj_request->kref); in rbd_obj_request_create()
1462 dout("%s %p\n", __func__, obj_request); in rbd_obj_request_create()
1463 return obj_request; in rbd_obj_request_create()
1468 struct rbd_obj_request *obj_request; in rbd_obj_request_destroy() local
1472 obj_request = container_of(kref, struct rbd_obj_request, kref); in rbd_obj_request_destroy()
1474 dout("%s: obj %p\n", __func__, obj_request); in rbd_obj_request_destroy()
1476 while (!list_empty(&obj_request->osd_reqs)) { in rbd_obj_request_destroy()
1477 osd_req = list_first_entry(&obj_request->osd_reqs, in rbd_obj_request_destroy()
1483 switch (obj_request->img_request->data_type) { in rbd_obj_request_destroy()
1489 kfree(obj_request->bvec_pos.bvecs); in rbd_obj_request_destroy()
1495 kfree(obj_request->img_extents); in rbd_obj_request_destroy()
1496 if (obj_request->copyup_bvecs) { in rbd_obj_request_destroy()
1497 for (i = 0; i < obj_request->copyup_bvec_count; i++) { in rbd_obj_request_destroy()
1498 if (obj_request->copyup_bvecs[i].bv_page) in rbd_obj_request_destroy()
1499 __free_page(obj_request->copyup_bvecs[i].bv_page); in rbd_obj_request_destroy()
1501 kfree(obj_request->copyup_bvecs); in rbd_obj_request_destroy()
1504 kmem_cache_free(rbd_obj_request_cache, obj_request); in rbd_obj_request_destroy()
1598 struct rbd_obj_request *obj_request; in rbd_img_request_destroy() local
1604 for_each_obj_request_safe(img_request, obj_request, next_obj_request) in rbd_img_request_destroy()
1605 rbd_img_obj_request_del(img_request, obj_request); in rbd_img_request_destroy()
2788 child_img_req->obj_request = obj_req; in rbd_obj_read_from_parent()
3578 struct rbd_obj_request *obj_req = img_req->obj_request; in rbd_img_handle_request()