Skip to content

Commit

Permalink
blk: Fix bio_io_vec index when checking bvec gaps
Browse files Browse the repository at this point in the history
Corrects a coding error from earlier patch.

Reported by: Sagi Grimberg <sagig@dev.mellanox.co.il>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Fixes: 03100aa ("block: Replace SG_GAPS with new queue limits mask")
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Keith Busch authored and Jens Axboe committed Sep 1, 2015
1 parent 03100aa commit 2ca495a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ static int req_gap_to_prev(struct request *req, struct bio *next)
struct bio *prev = req->biotail;

return bvec_gap_to_prev(req->q, &prev->bi_io_vec[prev->bi_vcnt - 1],
next->bi_io_vec[1].bv_offset);
next->bi_io_vec[0].bv_offset);
}

static int ll_merge_requests_fn(struct request_queue *q, struct request *req,
Expand Down

0 comments on commit 2ca495a

Please sign in to comment.