[PATCH 09/15] block: pass a queue_limits argument to blk_mq_init_queue
Hannes Reinecke
hare at suse.de
Tue Jan 23 22:16:00 PST 2024
On 1/22/24 18:36, Christoph Hellwig wrote:
> Pass a queue_limits to blk_mq_init_queue and apply it if non-NULL. This
> will allow allocating queues with valid queue limits instead of setting
> the values one at a time later.
>
> Also rename the function to blk_mq_alloc_queue as that is a much better
> name for a function that allocates a queue and always pass the queuedata
> argument instead of having a separate version for the extra argument.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> ---
> block/blk-mq.c | 19 +++++++------------
> block/bsg-lib.c | 2 +-
> drivers/nvme/host/apple.c | 2 +-
> drivers/nvme/host/core.c | 6 +++---
> drivers/scsi/scsi_scan.c | 2 +-
> drivers/ufs/core/ufshcd.c | 2 +-
> include/linux/blk-mq.h | 3 ++-
> 7 files changed, 16 insertions(+), 20 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald,
Werner Knoblich
More information about the Linux-nvme
mailing list