Received: by 10.213.65.68 with SMTP id h4csp714187imn; Fri, 6 Apr 2018 07:43:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/snIBJs5lYpdkKUJpNu6hrLuCddUSUpKMcOVqda4G7ufjwajzPWNIvYBRnb93Rvfl+/dyx X-Received: by 10.99.114.2 with SMTP id n2mr18197502pgc.274.1523025808876; Fri, 06 Apr 2018 07:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523025808; cv=none; d=google.com; s=arc-20160816; b=qj95XHdYMVl+0zlNJuhAhPKV1cAvltxte17lV2x79Cia5ldbzIGA+spZ6VnRVhx0K8 ka7bPiVTfWzZMPEU8voEJ6HzHtZspt4sMCtMwkZNZkaujG20MjUmm0Ln+PhvgTd9pfkb tUD3FHGProk8t7c2qh9L91YuWYtQeJNI6BndZ8vKaNVhNgpHncSUD/sEdmzDC6d5h73p qnEnHluiW0UXmy/32+E8v7c89VX/RdKjOpRkRR2pA+FEmQnY/Jkkr/EjskLaW8ooX/Sm U3Gq733oz+KbypFRjbOcgIOLzM6SUGIGaHfPCy1MXyE3POenre36z0pptNWdh+I3Vj8D qiyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ekvvzAzI9L/KMre4UP0xhVGJtuxFyE/ENmM197iB5sk=; b=JQs8OAhgNp1LJ5ztORSEdnypnk0GAhfiLJkd3mx6pMDh+l4pKs85lED/mqyshXOfMw M9P9NgX1/2gQi/ppkDpJKZTMoQkUPON5x0UemHDuQsX6J1pss9qgvAuUSDfbanql7xEg 1NNQuG4jG7AyARq0pV0mggXfbyASDjju462BTKJlHQvwaTg/IEMmD2bsoTTAsUnqV1iB 1JSl+MkShZfCb7LisvcphXHdy/K3VH9RTF/D8/W3B6Yiuf15w48/xWRa+oc1EH552zz7 yvBw6DC8StqV78bk+w/HQeD6Fjz0bnC+rwd/ezpeWpq0tHs7EOt3C+QZ1ZQOR+VnlqJB PACw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k64si7213723pge.113.2018.04.06.07.43.14; Fri, 06 Apr 2018 07:43:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755882AbeDFNed (ORCPT + 99 others); Fri, 6 Apr 2018 09:34:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58322 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755856AbeDFNe2 (ORCPT ); Fri, 6 Apr 2018 09:34:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C746FD85; Fri, 6 Apr 2018 13:34:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Gibson , Paolo Bonzini , Fam Zheng , Stefan Hajnoczi , "Martin K. Petersen" , Ben Hutchings Subject: [PATCH 4.9 048/102] scsi: virtio_scsi: always read VPD pages for multiqueue too Date: Fri, 6 Apr 2018 15:23:29 +0200 Message-Id: <20180406084338.376839140@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paolo Bonzini commit a680f1d463aeaeb00d22af257a56e111967c2f18 upstream. 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 Reviewed-by: Fam Zheng Reviewed-by: Stefan Hajnoczi Signed-off-by: Martin K. Petersen Cc: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/virtio_scsi.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c @@ -819,6 +819,7 @@ static struct scsi_host_template virtscs .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,