block: pass struct queue_limits to the bio splitting helpers
authorChristoph Hellwig <hch@lst.de>
Wed, 27 Jul 2022 16:23:00 +0000 (12:23 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Aug 2022 03:08:53 +0000 (21:08 -0600)
commitc55ddd9082f757050183bd0e215aab3af3fc225f
tree920aa9d6aa69abcb1bfa14c4e954632b0752b5a5
parentb6dc6198ebe855d70e6f68d279c4015fe5d73e7b
block: pass struct queue_limits to the bio splitting helpers

Allow using the splitting helpers on just a queue_limits instead of
a full request_queue structure.  This will eventually allow file systems
or remapping drivers to split REQ_OP_ZONE_APPEND bios based on limits
calculated as the minimum common capabilities over multiple devices.

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-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c
block/bio.c
block/blk-merge.c
block/blk-mq.c
block/blk.h