]> git.baikalelectronics.ru Git - kernel.git/commit
block: Check for gaps on front and back merges
authorJens Axboe <axboe@fb.com>
Thu, 3 Sep 2015 16:28:20 +0000 (19:28 +0300)
committerJens Axboe <axboe@fb.com>
Thu, 3 Sep 2015 16:33:09 +0000 (10:33 -0600)
commit15fd2726b88ab60ae6631f88b1a270b165af93b3
treedce51421028d162af78514b631dc75a6be92cf11
parent6f44828fdff8ed3614eeae42fb3a7e587af61d99
block: Check for gaps on front and back merges

We are checking for gaps to previous bio_vec, which can
only detect back merges gaps. Moreover, at the point where
we check for a gap, we don't know if we will attempt a back
or a front merge. Thus, check for gap to prev in a back merge
attempt and check for a gap to next in a front merge attempt.

Signed-off-by: Jens Axboe <axboe@fb.com>
[sagig: Minor rename change]
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
block/blk-merge.c
include/linux/blkdev.h