Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp839499ybd; Wed, 26 Jun 2019 06:53:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcAXK58fWC5VoyzSac/tv3q8yMYuMQXrFkmsBybqW22URmolj36sDIFAr1ia/K4iUwEeOK X-Received: by 2002:a17:902:f204:: with SMTP id gn4mr5667204plb.3.1561557195177; Wed, 26 Jun 2019 06:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561557195; cv=none; d=google.com; s=arc-20160816; b=JH7IesClqI0m7kRYxxesrR44qv1WZocr7f5y8fyzzX1SUb9e17i0NNlZix5MM2PVKf h6MJafPMO4pmQg8UJxqO/XIqJpwOQhMrbPyS0UhuFcCEe2j8Kcp/Ng7rM8hA9DHszzLr 8eDVGktcYCxUxqu2pmzOuaoumEomvk0iAgrLM0ChdQO1rzYQN+n0Gtwdnlkti5WgXN7p 8E8MeBlnTdNFnEYVIcWh0W2wA0yVWjMOdGJsJ/9a1NSgQX3bU8neqXACm1WMZb0fbsB0 AeQeCLGzrmOHvRwGTFh5PPJ8bz4uwAFw40m6qsLfz4N7li54viwcZ6eimC6I3qtp1lqL QerA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:references:cc:to:from:subject :dkim-signature; bh=L1QzJH26Rtlayv3dcfz7uw99hm6XeFohVPFpU4/XzTw=; b=v7gfKjr4DYbsonSOu6WcxklxFuSiAqP8q6PBLbtgatjxpMrfiskr+q7toQE/19llUn rx49f1gVEX5X9CN0WavYWMJeQlfl2FjD9zQbOdKHoLH777MnNXxGsCA61J5mak//wO3G SNulhz+5n/dVlZcmSB9oxgneHL3snkm7d4wgbZOaCQeb0h3ODR5rCXoxndbkBWrTAbi0 VWA8s2Hm9rM+61qetYad9jNPfUxQIwII+W/zjEe+PuVgh7Tq9kFTAF2OOWxKXGwxSzqN Z8oQsG8l0mApITppP3TeCtgMGTDNkVOZmjUAaAdseqWUtErFBElMVnc1oKqsFWGKyhMo 4fow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CLMOxtMX; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h124si15373828pfb.242.2019.06.26.06.52.58; Wed, 26 Jun 2019 06:53:15 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CLMOxtMX; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728027AbfFZNvi (ORCPT + 99 others); Wed, 26 Jun 2019 09:51:38 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34385 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727831AbfFZNvi (ORCPT ); Wed, 26 Jun 2019 09:51:38 -0400 Received: by mail-wm1-f65.google.com with SMTP id w9so4705891wmd.1; Wed, 26 Jun 2019 06:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:references:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=L1QzJH26Rtlayv3dcfz7uw99hm6XeFohVPFpU4/XzTw=; b=CLMOxtMXWjQ2CJw/2FGcAUkSWxmV2vsYpAOYCCNQFlc+y80Bjb+P6kSYh2zrqd347W EsBn/flL6dGPo95+JwIZ+WCkSiPKAEZkO+2Za9T073Usswps6vw+fLJhvdgGuuylIkym rI//BhmQKGeKUbyg8DOIPoCDQCP92CEr/n2iWUXN9IrsQf5llyu9xD2ECreTcnmDoaCT GEC2wXRkchSbMOHdiqnrewlNaEFGRw40nVjOT4lyrr6LevlJ+BvvgnPl5R5UV4ZvVguP g5TCuMHThV9crVjNon5xz7QORRSCj4Up2SkiKPYzTRSVF48EHucdgo1IhcESpNao6Rw2 MqYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:references:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=L1QzJH26Rtlayv3dcfz7uw99hm6XeFohVPFpU4/XzTw=; b=IdLtVFdlBZZiChk40vWVEC2vMzGXPoycEkymuN9SWZ8eFP0maTOKI1J9SsUrRyDIjY en6DgDV0AzWhd4DqOFSeczlCvpAgmE9B7zgdssoRxK1CTm14EBZuTSB6//59UchMWVWf 0mziRe1QZRK4g8sV3zpFbC82aQzuNfNDa6TIo9I50lD7hldWb0lDLYzAs7v4Dpy4wAeW ndeTPxAHrYtyHBlpaA8gWZWyxqLxwor5JsUbFmJDJk4efQOX21Wt6PRcsjQvYsgoOXkL Pl1Wya0Jo2oeXmUVZ6535YYuAroxCR/8dFXf74Kh7eVkb8Oq1ap/L1aYbA81U3yrdVS7 NKXQ== X-Gm-Message-State: APjAAAUR5/FzyQuXg68zjwD0w0Z+mzmGDAY3y1gawsK+vEC8TOPn/FS6 qzY602BsjCgGYwTlEGkVnBI= X-Received: by 2002:a1c:1d8d:: with SMTP id d135mr2709937wmd.54.1561557094754; Wed, 26 Jun 2019 06:51:34 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:e88d:856c:e081:f67d? ([2001:b07:6468:f312:e88d:856c:e081:f67d]) by smtp.googlemail.com with ESMTPSA id 203sm1855855wmc.30.2019.06.26.06.51.33 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 06:51:33 -0700 (PDT) Subject: Re: [PATCH 0/2] scsi: add support for request batching From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, stefanha@redhat.com References: <20190530112811.3066-1-pbonzini@redhat.com> Openpgp: preference=signencrypt Autocrypt: addr=pbonzini@redhat.com; keydata= mQHhBFRCcBIBDqDGsz4K0zZun3jh+U6Z9wNGLKQ0kSFyjN38gMqU1SfP+TUNQepFHb/Gc0E2 CxXPkIBTvYY+ZPkoTh5xF9oS1jqI8iRLzouzF8yXs3QjQIZ2SfuCxSVwlV65jotcjD2FTN04 hVopm9llFijNZpVIOGUTqzM4U55sdsCcZUluWM6x4HSOdw5F5Utxfp1wOjD/v92Lrax0hjiX DResHSt48q+8FrZzY+AUbkUS+Jm34qjswdrgsC5uxeVcLkBgWLmov2kMaMROT0YmFY6A3m1S P/kXmHDXxhe23gKb3dgwxUTpENDBGcfEzrzilWueOeUWiOcWuFOed/C3SyijBx3Av/lbCsHU Vx6pMycNTdzU1BuAroB+Y3mNEuW56Yd44jlInzG2UOwt9XjjdKkJZ1g0P9dwptwLEgTEd3Fo UdhAQyRXGYO8oROiuh+RZ1lXp6AQ4ZjoyH8WLfTLf5g1EKCTc4C1sy1vQSdzIRu3rBIjAvnC tGZADei1IExLqB3uzXKzZ1BZ+Z8hnt2og9hb7H0y8diYfEk2w3R7wEr+Ehk5NQsT2MPI2QBd wEv1/Aj1DgUHZAHzG1QN9S8wNWQ6K9DqHZTBnI1hUlkp22zCSHK/6FwUCuYp1zcAEQEAAbQj UGFvbG8gQm9uemluaSA8cGJvbnppbmlAcmVkaGF0LmNvbT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019 15:51:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190530112811.3066-1-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/05/19 13:28, Paolo Bonzini wrote: > This allows a list of requests to be issued, with the LLD only writing > the hardware doorbell when necessary, after the last request was prepared. > This is more efficient if we have lists of requests to issue, particularly > on virtualized hardware, where writing the doorbell is more expensive than > on real hardware. > > This applies to any HBA, either singlequeue or multiqueue; the second > patch implements it for virtio-scsi. > > Paolo > > Paolo Bonzini (2): > scsi_host: add support for request batching > virtio_scsi: implement request batching > > drivers/scsi/scsi_lib.c | 37 ++++++++++++++++++++++--- > drivers/scsi/virtio_scsi.c | 55 +++++++++++++++++++++++++++----------- > include/scsi/scsi_cmnd.h | 1 + > include/scsi/scsi_host.h | 16 +++++++++-- > 4 files changed, 89 insertions(+), 20 deletions(-) > Ping? Are there any more objections? Paolo