search for: use_pers_gnts

Displaying 1 result from an estimated 1 matches for "use_pers_gnts".

2012 Sep 19
27
[PATCH] Persistent grant maps for xen blk drivers
...MENTS_PER_REQUEST]; + struct pers_gnt *pers_gnts[BLKIF_MAX_SEGMENTS_PER_REQUEST]; + struct page *pages_to_gnt[BLKIF_MAX_SEGMENTS_PER_REQUEST]; + struct pers_gnt *pers_gnt; + phys_addr_t addr; int i; + int new_map; int nseg = req->u.rw.nr_segments; + int segs_to_init = 0; int ret = 0; + int use_pers_gnts; + use_pers_gnts = (pending_req->blkif->can_grant_persist && + pending_req->blkif->pers_gnt_c < + BLKIF_MAX_SEGMENTS_PER_REQUEST * + BLKIF_MAX_PERS_REQUESTS_PER_DEV); + + pending_req->is_pers = use_pers_gnts; /* * Fill out preq.nr_sects with proper amount o...