On 2/13/24 08:34, Christoph Hellwig wrote:
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 <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
---
block/blk-core.c | 26 ++++++++++++++++++--------
block/blk-mq.c | 7 ++++---
block/blk.h | 2 +-
block/genhd.c | 5 +++--
4 files changed, 26 insertions(+), 14 deletions(-)
Reviewed-by: Hannes Reinecke <[email protected]>
Cheers,
Hannes