]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdca632a86f82939ffd70a4870325586324d4603a
treeb9912fc04e66a51d94a3798b784c3a60d8205910
parent0ff5b0dc0afa9e76e6b323f2c7e2edc9939edc92
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