Skip to content
Commit 5e7c4274 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@fb.com>
[sagig: Minor rename change]
Signed-off-by: default avatarSagi Grimberg <sagig@mellanox.com>
parent 5fdb7e1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment