mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
blk: Fix bio_io_vec index when checking bvec gaps
Corrects a coding error from earlier patch.
Reported by: Sagi Grimberg <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Fixes: 03100aada9 ("block: Replace SG_GAPS with new queue limits mask")
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
03100aada9
commit
2ca495ac27
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue