]> git.baikalelectronics.ru Git - kernel.git/commit
block: change the blk_queue_bounce calling convention
authorChristoph Hellwig <hch@lst.de>
Wed, 27 Jul 2022 16:22:56 +0000 (12:22 -0400)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:54 +0000 (17:22 -0600)
commitffe88d7d5e52a9e74b58e4af44302b7b4cb4308f
treef80c9ae63c33edb1fbb31c1e92d4c46253aea4c4
parent0315bac8057fa8ce7474767b78f36acdda2e826b
block: change the blk_queue_bounce calling convention

The double indirect bio leads to somewhat suboptimal code generation.
Instead return the (original or split) bio, and make sure the
request_queue arguments to the lower level helpers is passed after the
bio to avoid constant reshuffling of the argument passing registers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220727162300.3089193-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk.h
block/bounce.c