Merge tag 'wireless-drivers-for-davem-2015-03-24' of git://git.kernel.org/pub/scm...
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / scsi_scan.c
index 0deb385ad4d66e0449187a61ebac94e958a2bf5b..9c0a520d933c91eaaf793a259ba099d87c8d3176 100644 (file)
@@ -277,7 +277,8 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
        if (!shost_use_blk_mq(sdev->host) &&
            (shost->bqt || shost->hostt->use_blk_tags)) {
                blk_queue_init_tags(sdev->request_queue,
-                                   sdev->host->cmd_per_lun, shost->bqt);
+                                   sdev->host->cmd_per_lun, shost->bqt,
+                                   shost->hostt->tag_alloc_policy);
        }
        scsi_change_queue_depth(sdev, sdev->host->cmd_per_lun);