]> 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)
commit0315bac8057fa8ce7474767b78f36acdda2e826b
tree60b436ff4a9279e7b32e1c41b9194be5a665ca43
parent67b102dc52c5c688eb0281f7fcb7ba0fdda7a892
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