OSDN Git Service

block: avoid blk_bio_segment_split for small I/O operations
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2019 18:05:43 +0000 (10:05 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 5 Nov 2019 00:13:54 +0000 (17:13 -0700)
commitfa53228721876515adabc7bc74368490bd97aa3b
treeb9912fc04e66a51d94a3798b784c3a60d8205910
parentd2c9be89f8ebe7ebcc97676ac40f8dec1cf9b43a
block: avoid blk_bio_segment_split for small I/O operations

__blk_queue_split() adds significant overhead for small I/O operations.
Add a shortcut to avoid it for cases where we know we never need to
split.

Based on a patch from Ming Lei.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c