blk-mq: move blk_mq_attempt_bio_merge out blk_mq_get_new_requests
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Jan 2024 09:26:56 +0000 (10:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Feb 2024 17:03:51 +0000 (10:03 -0700)
commit0f299da55ac3d28bc9de23a84fae01a85c4e253a
tree8018ae7f4456e0d94f59377789d8d03afc7b9a9b
parent54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
blk-mq: move blk_mq_attempt_bio_merge out blk_mq_get_new_requests

blk_mq_attempt_bio_merge has nothing to do with allocating a new
request, it avoids allocating a new request.  Move the call out of
blk_mq_get_new_requests and into the only caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Tested-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20240124092658.2258309-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c