diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-13 10:34:18 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-13 18:56:59 +0300 |
commit | ad751ba1f8d5d4f4f4b429b552a154e888524a93 (patch) | |
tree | 737da9e252e9636dd01a91be08241409b4971943 /block/blk.h | |
parent | ff956a3be95b45b2a823693a8c9db740939ca35e (diff) | |
download | linux-ad751ba1f8d5d4f4f4b429b552a154e888524a93.tar.xz |
block: pass a queue_limits argument to blk_alloc_queue
Pass a queue_limits to blk_alloc_queue and apply it after validating and
capping the values using blk_validate_limits. This will allow allocating
queues with valid queue limits instead of setting the values one at a
time later.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20240213073425.1621680-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk.h b/block/blk.h index 43c7e9180b30..7c30e2ac8ebc 100644 --- a/block/blk.h +++ b/block/blk.h @@ -448,7 +448,7 @@ static inline void bio_release_page(struct bio *bio, struct page *page) unpin_user_page(page); } -struct request_queue *blk_alloc_queue(int node_id); +struct request_queue *blk_alloc_queue(struct queue_limits *lim, int node_id); int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode); |