Displaying 2 results from an estimated 2 matches for "gnt_list_entry".
2013 Feb 28
0
[PATCH RFC 05/12] xen-blkfront: remove frame list from blk_shadow
...t blkif_queue_request(struct request *req)
{
struct blkfront_info *info = req->rq_disk->private_data;
- unsigned long buffer_mfn;
struct blkif_request *ring_req;
unsigned long id;
unsigned int fsect, lsect;
@@ -434,7 +432,6 @@ static int blkif_queue_request(struct request *req)
gnt_list_entry = get_grant(&gref_head, info);
ref = gnt_list_entry->gref;
- buffer_mfn = pfn_to_mfn(gnt_list_entry->pfn);
info->shadow[id].grants_used[i] = gnt_list_entry;
@@ -465,7 +462,6 @@ static int blkif_queue_request(struct request *req)
kunmap_atomic(shared_data);
}
-...
2012 Sep 19
27
[PATCH] Persistent grant maps for xen blk drivers
...int i, ref;
+ int i, ref, use_pers_gnts, new_pers_gnts;
grant_ref_t gref_head;
+ struct bio_vec *bvecs[BLKIF_MAX_SEGMENTS_PER_REQUEST];
+ struct bio_vec *bvec;
+ struct req_iterator iter;
+ char *bvec_data;
+ void *shared_data;
+ unsigned long flags;
+ struct page *shared_page;
+ struct gnt_list *gnt_list_entry;
struct scatterlist *sg;
if (unlikely(info->connected != BLKIF_STATE_CONNECTED))
return 1;
- if (gnttab_alloc_grant_references(
- BLKIF_MAX_SEGMENTS_PER_REQUEST, &gref_head) < 0) {
- gnttab_request_free_callback(
- &info->callback,
- blkif_restart_queue_callback,
-...