]> git.baikalelectronics.ru Git - kernel.git/commit
block: split bio if the only bvec's length is > SZ_4K
authorMing Lei <ming.lei@redhat.com>
Fri, 8 Nov 2019 10:15:28 +0000 (18:15 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2019 13:59:51 +0000 (06:59 -0700)
commitfeb77c9f5b25f3e88c1f4a8651a414d9ace9317e
tree74d3fecaa1024ee992b9e8d02333f88edbf34337
parentcd4f05fa93d3d69b166a8d2a0414a8252e86eea9
block: split bio if the only bvec's length is > SZ_4K

64K PAGE_SIZE is popular on ARM64 or other ARCHs, and 64K has been big
enough to break some devices probably, so change the logic to split bio
if the only bvec's length is > SZ_4K instead of PAGE_SIZE.

Fixes: 6c1ea4f67ada (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