Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376985
b: refs/heads/master
c: 093c959
h: refs/heads/master
i:
  376983: d30fd25
v: v3
  • Loading branch information
Sam Bradshaw authored and Jens Axboe committed May 15, 2013
1 parent 21ba3e7 commit eed462e
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 974a51a245c2c8bece21cf2d3cbfc8261260f729
refs/heads/master: 093c959307f2f5af72b24fdc4af7d4d0263f6eea
5 changes: 3 additions & 2 deletions trunk/drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3864,7 +3864,7 @@ static void mtip_make_request(struct request_queue *queue, struct bio *bio)
struct driver_data *dd = queue->queuedata;
struct scatterlist *sg;
struct bio_vec *bvec;
int nents = 0;
int i, nents = 0;
int tag = 0, unaligned = 0;

if (unlikely(dd->dd_flag & MTIP_DDF_STOP_IO)) {
Expand Down Expand Up @@ -3922,11 +3922,12 @@ static void mtip_make_request(struct request_queue *queue, struct bio *bio)
}

/* Create the scatter list for this bio. */
bio_for_each_segment(bvec, bio, nents) {
bio_for_each_segment(bvec, bio, i) {
sg_set_page(&sg[nents],
bvec->bv_page,
bvec->bv_len,
bvec->bv_offset);
nents++;
}

/* Issue the read/write. */
Expand Down

0 comments on commit eed462e

Please sign in to comment.