]> git.baikalelectronics.ru Git - kernel.git/commit
block: change the blk_queue_split calling convention
authorChristoph Hellwig <hch@lst.de>
Wed, 27 Jul 2022 16:22:55 +0000 (12:22 -0400)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:53 +0000 (17:22 -0600)
commit1f3e9dc98fdf1ef7e2fcb67cd01f69148edaf060
tree60b436ff4a9279e7b32e1c41b9194be5a665ca43
parent9e34e66ff8bd8160a3838bf2c1d2b98337b65bd7
block: change the blk_queue_split 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.

Also give it and the helpers used to implement it more descriptive names.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220727162300.3089193-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c
block/blk-mq.c
block/blk.h
drivers/block/drbd/drbd_req.c
drivers/block/pktcdvd.c
drivers/block/ps3vram.c
drivers/md/dm.c
drivers/md/md.c
drivers/nvme/host/multipath.c
drivers/s390/block/dcssblk.c
include/linux/blkdev.h