]> www.infradead.org Git - users/hch/block.git/commit
scsi: initialize scsi midlayer limits before allocating the queue
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Mar 2024 04:17:30 +0000 (21:17 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 9 Apr 2024 05:37:13 +0000 (07:37 +0200)
commit1c67f2ecbf1a10751f6fe70526520a40eb7fa26c
tree57e3b2dce1b593990377a5b42a260060cdd3a9ef
parent8b672278f38210c6c128f4ae295c94bc50a916a0
scsi: initialize scsi midlayer limits before allocating the queue

Turn __scsi_init_queue into scsi_init_limits which initializes
queue_limits structure that can be passed to blk_mq_alloc_queue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_transport_fc.c
drivers/scsi/scsi_transport_iscsi.c
include/scsi/scsi_transport.h