Merge tag 'for-6.9/block-20240310' of git://git.kernel.dk/linux
[linux-2.6-microblaze.git] / drivers / scsi / scsi_scan.c
index 44680f6..9969f4e 100644 (file)
@@ -332,7 +332,7 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
 
        sdev->sg_reserved_size = INT_MAX;
 
-       q = blk_mq_init_queue(&sdev->host->tag_set);
+       q = blk_mq_alloc_queue(&sdev->host->tag_set, NULL, NULL);
        if (IS_ERR(q)) {
                /* release fn is set up in scsi_sysfs_device_initialise, so
                 * have to free and put manually here */