]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
scsi: virtio_scsi: always read VPD pages for multiqueue too
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jul 2017 08:30:56 +0000 (10:30 +0200)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:33:57 +0000 (21:33 -0400)
[ Upstream commit a680f1d463aeaeb00d22af257a56e111967c2f18 ]

Multi-queue virtio-scsi uses a different scsi_host_template struct.  Add
the .device_alloc field there, too.

Fixes: 25d1d50e23275e141e3a3fe06c25a99f4c4bf4e0
Cc: stable@vger.kernel.org
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/scsi/virtio_scsi.c

index baa0c2392b48190536a0e0297a1aa85dca6a4ba6..ac2b06a7142eb921442d8f040dabad18efb538cf 100644 (file)
@@ -814,6 +814,7 @@ static struct scsi_host_template virtscsi_host_template_multi = {
        .eh_abort_handler = virtscsi_abort,
        .eh_device_reset_handler = virtscsi_device_reset,
 
+       .slave_alloc = virtscsi_device_alloc,
        .can_queue = 1024,
        .dma_boundary = UINT_MAX,
        .use_clustering = ENABLE_CLUSTERING,