]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/scsi/scsi_scan.c
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[thirdparty/linux.git] / drivers / scsi / scsi_scan.c
index 44c1956b17204017a4e84004b201fdc322497c8a..8d06475de17a33a26921a1ff70c57f759986973f 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 */