Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752406AbdGEIoM (ORCPT ); Wed, 5 Jul 2017 04:44:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33960 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbdGEIoK (ORCPT ); Wed, 5 Jul 2017 04:44:10 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9E0F361D2F Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=famz@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 9E0F361D2F Date: Wed, 5 Jul 2017 16:43:55 +0800 From: Fam Zheng To: Paolo Bonzini Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, stefanha@redhat.com, stable@vger.kernel.org, David Gibson Subject: Re: [PATCH] virtio_scsi: always read VPD pages for multiqueue too Message-ID: <20170705084355.GD29382@lemon.lan> References: <1499243456-29978-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1499243456-29978-1-git-send-email-pbonzini@redhat.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 05 Jul 2017 08:43:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 987 Lines: 29 On Wed, 07/05 10:30, Paolo Bonzini wrote: > 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 > Signed-off-by: Paolo Bonzini > --- > drivers/scsi/virtio_scsi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c > index f8dbfeee6c63..ad1e7f1aba4c 100644 > --- a/drivers/scsi/virtio_scsi.c > +++ b/drivers/scsi/virtio_scsi.c > @@ -826,6 +826,7 @@ static int virtscsi_map_queues(struct Scsi_Host *shost) > .change_queue_depth = virtscsi_change_queue_depth, > .eh_abort_handler = virtscsi_abort, > .eh_device_reset_handler = virtscsi_device_reset, > + .slave_alloc = virtscsi_device_alloc, > > .can_queue = 1024, > .dma_boundary = UINT_MAX, > -- > 1.8.3.1 > Reviewed-by: Fam Zheng