]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJack Vogel <jack.vogel@oracle.com>
Wed, 7 Feb 2018 18:07:07 +0000 (10:07 -0800)
commita8f69e57a7999e213cc70e6e0e5eb51bbf3f97cf
treed58868595b98b7d112d5d6e2f9ca2e8f2fbbd871
parentf1c53e38b659eff91155f4fb17c4343f7051706a
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>
(cherry picked from commit 5e7c4274a70aa2d6f485996d0ca1dad52d0039ca)

Orabug: 27484719

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
block/blk-merge.c
include/linux/blkdev.h