mmc: pass queue_limits to blk_mq_alloc_disk
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Feb 2024 07:03:00 +0000 (08:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Feb 2024 00:00:29 +0000 (17:00 -0700)
commit616f8766179277324393f7b77e07f14cb3503825
treefb1cdb89ff7d9a2b29c6d5db7418df4ddbece424
parent494ea040bcb5f4cc78c37dc53c7915752c24f739
mmc: pass queue_limits to blk_mq_alloc_disk

Pass the queue limit set at initialization time directly to
blk_mq_alloc_disk instead of updating it right after the allocation.

This requires refactoring the code a bit so that what was mmc_setup_queue
before also allocates the gendisk now and actually sets all limits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20240215070300.2200308-18-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/mmc/core/queue.c