]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't check if adjacent bvecs in one bio can be mergeable
authorMing Lei <ming.lei@redhat.com>
Sun, 17 Mar 2019 10:01:12 +0000 (18:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Apr 2019 18:11:48 +0000 (12:11 -0600)
commit66c5760cf7b4598db644dea005d843afef4be750
tree043b4dcbd5197a9ac343f680b255fd3ad524d53b
parent3d25a2bca9e4ed6f13c8ab784a4b89ed3ce97572
block: don't check if adjacent bvecs in one bio can be mergeable

Now both passthrough and FS IO have supported multi-page bvec, and
bvec merging has been handled actually when adding page to bio, then
adjacent bvecs won't be mergeable any more if they belong to same bio.

So only try to merge bvecs if they are from different bios.

Cc: Omar Sandoval <osandov@fb.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c