Skip to content

Commit a680f1d

Browse files
bonzinimartinkpetersen
authored andcommitted
scsi: virtio_scsi: always read VPD pages for multiqueue too
Multi-queue virtio-scsi uses a different scsi_host_template struct. Add the .device_alloc field there, too. Fixes: 25d1d50 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>
1 parent acef269 commit a680f1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/virtio_scsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,7 @@ static struct scsi_host_template virtscsi_host_template_multi = {
837837
.eh_abort_handler = virtscsi_abort,
838838
.eh_device_reset_handler = virtscsi_device_reset,
839839
.eh_timed_out = virtscsi_eh_timed_out,
840+
.slave_alloc = virtscsi_device_alloc,
840841

841842
.can_queue = 1024,
842843
.dma_boundary = UINT_MAX,

0 commit comments

Comments
 (0)