Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361983
b: refs/heads/master
c: ffb1dab
h: refs/heads/master
i:
  361981: b8878b1
  361979: 53a2c98
  361975: c0464d6
  361967: 94dba14
  361951: 2abce6c
  361919: f62b9ec
  361855: e1ed650
  361727: 4b196b2
  361471: 5fc232c
v: v3
  • Loading branch information
Roger Pau Monne authored and Konrad Rzeszutek Wilk committed Mar 19, 2013
1 parent 1e0ae65 commit 631f0ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 155b7edb51430a280f86c1e21b7be308b0d219d4
refs/heads/master: ffb1dabd1eb10c76a1e7af62f75a1aaa8d590b5a
21 changes: 6 additions & 15 deletions trunk/drivers/block/xen-blkback/blkback.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ int xen_blkif_schedule(void *arg)
}

struct seg_buf {
unsigned long buf;
unsigned int offset;
unsigned int nsec;
};
/*
Expand Down Expand Up @@ -621,30 +621,21 @@ static int xen_blkbk_map(struct blkif_request *req,
* If this is a new persistent grant
* save the handler
*/
persistent_gnts[i]->handle = map[j].handle;
persistent_gnts[i]->dev_bus_addr =
map[j++].dev_bus_addr;
persistent_gnts[i]->handle = map[j++].handle;
}
pending_handle(pending_req, i) =
persistent_gnts[i]->handle;

if (ret)
continue;

seg[i].buf = persistent_gnts[i]->dev_bus_addr |
(req->u.rw.seg[i].first_sect << 9);
} else {
pending_handle(pending_req, i) = map[j].handle;
pending_handle(pending_req, i) = map[j++].handle;
bitmap_set(pending_req->unmap_seg, i, 1);

if (ret) {
j++;
if (ret)
continue;
}

seg[i].buf = map[j++].dev_bus_addr |
(req->u.rw.seg[i].first_sect << 9);
}
seg[i].offset = (req->u.rw.seg[i].first_sect << 9);
}
return ret;
}
Expand Down Expand Up @@ -971,7 +962,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif,
(bio_add_page(bio,
pages[i],
seg[i].nsec << 9,
seg[i].buf & ~PAGE_MASK) == 0)) {
seg[i].offset) == 0)) {

bio = bio_alloc(GFP_KERNEL, nseg-i);
if (unlikely(bio == NULL))
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/block/xen-blkback/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ struct persistent_gnt {
struct page *page;
grant_ref_t gnt;
grant_handle_t handle;
uint64_t dev_bus_addr;
struct rb_node node;
};

Expand Down

0 comments on commit 631f0ec

Please sign in to comment.