]> git.baikalelectronics.ru Git - kernel.git/commit
block: still try to split bio if the bvec crosses pages
authorMing Lei <ming.lei@redhat.com>
Fri, 8 Nov 2019 10:15:27 +0000 (18:15 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2019 13:59:49 +0000 (06:59 -0700)
commit6c187aab7ef23544a431e274a8d4d72bb083f203
tree64b81003abbb0d0cb0005cabd7cc11606a1b4dcb
parent97fa5783470634aa1d95c0be6e04c18f7ff51b45
block: still try to split bio if the bvec crosses pages

Some device may set segment boundary as PAGE_SIZE - 1. If the bvec
crosses pages, and meantime its length is <= PAGE_SIZE, we still need
to split the bvec into 2 segments.

Fixes this issue by still splitting bio if the single bvec crosses
pages.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: dca632a86f82 (block: avoid blk_bio_segment_split for small I/O operations)
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