Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71999
b: refs/heads/master
c: 9b61764
h: refs/heads/master
i:
  71997: e3b51b5
  71995: d8d481d
  71991: 66b835f
  71983: f3af037
  71967: 8266552
  71935: a69fa14
v: v3
  • Loading branch information
Jens Axboe committed Oct 22, 2007
1 parent 37ec76a commit 969f3b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 82f66fbef58de4ad7519708d0b9e685e20fa4e8a
refs/heads/master: 9b61764bcb4360e04386f0415a01da8271631004
8 changes: 6 additions & 2 deletions trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,15 +1354,19 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq,
else
sg = sg_next(sg);

memset(sg, 0, sizeof(*sg));
sg->page = bvec->bv_page;
sg_dma_len(sg) = 0;
sg_dma_address(sg) = 0;
sg_set_page(sg, bvec->bv_page);
sg->length = nbytes;
sg->offset = bvec->bv_offset;
nsegs++;
}
bvprv = bvec;
} /* segments in rq */

if (sg)
__sg_mark_end(sg);

return nsegs;
}

Expand Down

0 comments on commit 969f3b3

Please sign in to comment.