Displaying 2 results from an estimated 2 matches for "get_back_ring".
2012 Aug 16
0
[RFC v1 3/5] VBD: enlarge max segment per request in blkfront
...;
xen_blkif_put(pending_req->blkif);
if (atomic_read(&pending_req->blkif->refcnt) <= 2) {
if (atomic_read(&pending_req->blkif->drain))
@@ -489,8 +520,37 @@ static void end_block_io_op(struct bio *bio, int error)
bio_put(bio);
}
+void *get_back_ring(struct xen_blkif *blkif)
+{
+ return (void *)&blkif->blk_rings;
+}
+void copy_blkif_req(struct xen_blkif *blkif, RING_IDX rc)
+{
+ struct blkif_request *req = (struct blkif_request *)blkif->req;
+ union blkif_back_rings *blk_rings = &blkif->blk_rings;
+ switch (blkif-&g...
2012 Aug 16
0
[RFC v1 5/5] VBD: enlarge max segment per request in blkfront
...VALID_HANDLE)
+ if (handle == BLKBACK_INVALID_HANDLE) {
+ printk("BLKBACK_INVALID_HANDLE\n");
continue;
+ }
gnttab_set_unmap_op(&unmap[invcount], vaddr(req, i),
GNTMAP_host_map, handle);
pending_handle(req, i) = BLKBACK_INVALID_HANDLE;
@@ -486,6 +492,12 @@ void *get_back_ring(struct xen_blkif *blkif)
return (void *)&blkif->blk_rings;
}
+void *get_back_ring_v2(struct xen_blkif *blkif)
+{
+ return (void *)&blkif->blk_rings_v2;
+}
+
+
void copy_blkif_req(struct xen_blkif *blkif, RING_IDX rc)
{
struct blkif_request *req = (struct blkif_request *)blkif...