Displaying 2 results from an estimated 2 matches for "seg_buf".
2012 Aug 16
0
[RFC v1 3/5] VBD: enlarge max segment per request in blkfront
...kback/blkback.c
index 73f196c..b4767f5 100644
--- a/drivers/block/xen-blkback/blkback.c
+++ b/drivers/block/xen-blkback/blkback.c
@@ -64,6 +64,11 @@ MODULE_PARM_DESC(reqs, "Number of blkback requests to allocate");
static unsigned int log_stats;
module_param(log_stats, int, 0644);
+struct seg_buf {
+ unsigned long buf;
+ unsigned int nsec;
+};
+
/*
* Each outstanding request that we''ve passed to the lower device layers has a
* ''pending_req'' allocated to it. Each buffer_head that completes decrements
@@ -78,6 +83,11 @@ struct pending_req {
uns...
2012 Sep 19
27
[PATCH] Persistent grant maps for xen blk drivers
..., false);
+ BUG_ON(ret);
+
+ blkif->pers_gnt_c -= segs_to_unmap;
+
+ }
+
if (log_stats)
print_stats(blkif);
@@ -343,13 +391,28 @@ static void xen_blkbk_unmap(struct pending_req *req)
static int xen_blkbk_map(struct blkif_request *req,
struct pending_req *pending_req,
- struct seg_buf seg[])
+ struct seg_buf seg[],
+ struct page *pages[])
{
struct gnttab_map_grant_ref map[BLKIF_MAX_SEGMENTS_PER_REQUEST];
+ struct pers_gnt *new_pers_gnts[BLKIF_MAX_SEGMENTS_PER_REQUEST];
+ struct pers_gnt *pers_gnts[BLKIF_MAX_SEGMENTS_PER_REQUEST];
+ struct page *pages_to_gnt[BLKIF_MAX_SE...