img_request 294 drivers/block/rbd.c struct rbd_img_request *img_request; img_request 1394 drivers/block/rbd.c switch (obj_req->img_request->data_type) { img_request 1417 drivers/block/rbd.c static void rbd_img_request_put(struct rbd_img_request *img_request) img_request 1419 drivers/block/rbd.c rbd_assert(img_request != NULL); img_request 1420 drivers/block/rbd.c dout("%s: img %p (was %d)\n", __func__, img_request, img_request 1421 drivers/block/rbd.c kref_read(&img_request->kref)); img_request 1422 drivers/block/rbd.c kref_put(&img_request->kref, rbd_img_request_destroy); img_request 1425 drivers/block/rbd.c static inline void rbd_img_obj_request_add(struct rbd_img_request *img_request, img_request 1428 drivers/block/rbd.c rbd_assert(obj_request->img_request == NULL); img_request 1431 drivers/block/rbd.c obj_request->img_request = img_request; img_request 1432 drivers/block/rbd.c dout("%s: img %p obj %p\n", __func__, img_request, obj_request); img_request 1435 drivers/block/rbd.c static inline void rbd_img_obj_request_del(struct rbd_img_request *img_request, img_request 1438 drivers/block/rbd.c dout("%s: img %p obj %p\n", __func__, img_request, obj_request); img_request 1440 drivers/block/rbd.c rbd_assert(obj_request->img_request == img_request); img_request 1459 drivers/block/rbd.c static void img_request_layered_set(struct rbd_img_request *img_request) img_request 1461 drivers/block/rbd.c set_bit(IMG_REQ_LAYERED, &img_request->flags); img_request 1465 drivers/block/rbd.c static void img_request_layered_clear(struct rbd_img_request *img_request) img_request 1467 drivers/block/rbd.c clear_bit(IMG_REQ_LAYERED, &img_request->flags); img_request 1471 drivers/block/rbd.c static bool img_request_layered_test(struct rbd_img_request *img_request) img_request 1474 drivers/block/rbd.c return test_bit(IMG_REQ_LAYERED, &img_request->flags) != 0; img_request 1479 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 1487 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 1500 drivers/block/rbd.c !obj_req->img_request->snapc->num_snaps)) img_request 1539 drivers/block/rbd.c if (osd_req->r_result > 0 && rbd_img_is_write(obj_req->img_request)) img_request 1552 drivers/block/rbd.c osd_req->r_snapid = obj_request->img_request->snap_id; img_request 1568 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 1602 drivers/block/rbd.c return __rbd_obj_add_osd_request(obj_req, obj_req->img_request->snapc, img_request 1640 drivers/block/rbd.c switch (obj_request->img_request->data_type) { img_request 1736 drivers/block/rbd.c struct rbd_img_request *img_request; img_request 1738 drivers/block/rbd.c img_request = kmem_cache_zalloc(rbd_img_request_cache, GFP_NOIO); img_request 1739 drivers/block/rbd.c if (!img_request) img_request 1742 drivers/block/rbd.c img_request->rbd_dev = rbd_dev; img_request 1743 drivers/block/rbd.c img_request->op_type = op_type; img_request 1744 drivers/block/rbd.c if (!rbd_img_is_write(img_request)) img_request 1745 drivers/block/rbd.c img_request->snap_id = rbd_dev->spec->snap_id; img_request 1747 drivers/block/rbd.c img_request->snapc = snapc; img_request 1750 drivers/block/rbd.c img_request_layered_set(img_request); img_request 1752 drivers/block/rbd.c INIT_LIST_HEAD(&img_request->lock_item); img_request 1753 drivers/block/rbd.c INIT_LIST_HEAD(&img_request->object_extents); img_request 1754 drivers/block/rbd.c mutex_init(&img_request->state_mutex); img_request 1755 drivers/block/rbd.c kref_init(&img_request->kref); img_request 1757 drivers/block/rbd.c return img_request; img_request 1762 drivers/block/rbd.c struct rbd_img_request *img_request; img_request 1766 drivers/block/rbd.c img_request = container_of(kref, struct rbd_img_request, kref); img_request 1768 drivers/block/rbd.c dout("%s: img %p\n", __func__, img_request); img_request 1770 drivers/block/rbd.c WARN_ON(!list_empty(&img_request->lock_item)); img_request 1771 drivers/block/rbd.c for_each_obj_request_safe(img_request, obj_request, next_obj_request) img_request 1772 drivers/block/rbd.c rbd_img_obj_request_del(img_request, obj_request); img_request 1774 drivers/block/rbd.c if (img_request_layered_test(img_request)) { img_request 1775 drivers/block/rbd.c img_request_layered_clear(img_request); img_request 1776 drivers/block/rbd.c rbd_dev_parent_put(img_request->rbd_dev); img_request 1779 drivers/block/rbd.c if (rbd_img_is_write(img_request)) img_request 1780 drivers/block/rbd.c ceph_put_snap_context(img_request->snapc); img_request 1782 drivers/block/rbd.c kmem_cache_free(rbd_img_request_cache, img_request); img_request 2087 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 2194 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 2272 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 2296 drivers/block/rbd.c switch (obj_req->img_request->data_type) { img_request 2363 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 2423 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 2514 drivers/block/rbd.c struct rbd_img_request *img_req = obj_req->img_request; img_request 2541 drivers/block/rbd.c switch (obj_req->img_request->op_type) { img_request 2897 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 2933 drivers/block/rbd.c struct rbd_img_request *img_req = obj_req->img_request; img_request 2984 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 3061 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 3083 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 3244 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 3269 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 3270 drivers/block/rbd.c struct ceph_snap_context *snapc = obj_req->img_request->snapc; img_request 3317 drivers/block/rbd.c if (obj_req->img_request->snapc->num_snaps && bytes > 0) { img_request 3345 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 3419 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 3434 drivers/block/rbd.c struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; img_request 3521 drivers/block/rbd.c struct rbd_img_request *img_req = obj_req->img_request; img_request 3548 drivers/block/rbd.c rbd_img_handle_request(obj_req->img_request, result); img_request 3734 drivers/block/rbd.c img_req = obj_req->img_request; img_request 4798 drivers/block/rbd.c struct rbd_img_request *img_request; img_request 4877 drivers/block/rbd.c img_request = rbd_img_request_create(rbd_dev, op_type, snapc); img_request 4878 drivers/block/rbd.c if (!img_request) { img_request 4882 drivers/block/rbd.c img_request->rq = rq; img_request 4886 drivers/block/rbd.c img_request, obj_op_name(op_type), offset, length); img_request 4889 drivers/block/rbd.c result = rbd_img_fill_nodata(img_request, offset, length); img_request 4891 drivers/block/rbd.c result = rbd_img_fill_from_bio(img_request, offset, length, img_request 4896 drivers/block/rbd.c rbd_img_handle_request(img_request, 0); img_request 4900 drivers/block/rbd.c rbd_img_request_put(img_request);