Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp864669ybd; Wed, 26 Jun 2019 07:16:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCuimjosNqAJ+ReLfhIw4deJM19X7utq7PPWWeDUjfgvhROplf1eX4D3PfKEqNZKvkphZ2 X-Received: by 2002:a17:90a:8a91:: with SMTP id x17mr5038280pjn.95.1561558577855; Wed, 26 Jun 2019 07:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561558577; cv=none; d=google.com; s=arc-20160816; b=b92EZTmGy5kZtJMY8LXZogdyAOuHIuLwxFT/CSnU6XBj901iaj/r9kgZ5WKpcH4oyP 42V9okd2GevH+jIdXlvOKa6z4G0v49zo00z5ycgKKxN4nSN6alQqWOaubqR+40eEiyNq 7L5cBTkNDz5yuSrsyZrLwE44APRGRn1cNPeohsgWUCnMsGjZ4ClkA4Snz2uGOQQ2+POG d+WZDA/PebDRcm9QE9478aiR2QaoxvwusRFu9Yfu/HZ4IUqN9FNx7TCZe1fmORWAi9g8 1zBjw6HEiJg7V1Z8LBlDnJ5mWf008+KxzqO+O4UTN3vZQVbX8IVrVnNdYXyVGux/7Ywy fsqA== 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:from:references:cc:to:subject:reply-to; bh=D431nXSuYHGVPt9spHa83JIp+Gx/tRnRrNgapB1Yfho=; b=lu5LHK8rKYN+JT5RmimwR2/OS/KS9+y4Og0hDo5RYRlOdRPosKC/nSo/mlZjBhKioc CZ2m9V88DjpH3sJyF9rVvFBGAAN+wkceXLQE+18lzUYy8RF6F/F1F/BavJ68wWIsCqCT 8UEBH7S5ivhw3f4qXw/x484fbtfMA+s9tQbBUwhfM4N7MpiGZ5KlvNHwB60Z6A0QLa7m K7/S0RstHUUYgTISqH5N/6i62IOb49gYy19R5n+dOA4WGbP9CnjVMXslPvonYVmliRNw zwi266lYQ7upDkY38qtJBa0lHM2/xnAemD63phqbQX5I6gA7paCZ1HV7Zf0+6Jhs6R6E pK5g== 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 a7si18207055pfc.54.2019.06.26.07.16.00; Wed, 26 Jun 2019 07:16:17 -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 S1727729AbfFZOOb (ORCPT + 99 others); Wed, 26 Jun 2019 10:14:31 -0400 Received: from smtp.infotech.no ([82.134.31.41]:32868 "EHLO smtp.infotech.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726484AbfFZOOb (ORCPT ); Wed, 26 Jun 2019 10:14:31 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id 70355204192; Wed, 26 Jun 2019 16:14:28 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PwazqP0WQn-2; Wed, 26 Jun 2019 16:14:26 +0200 (CEST) Received: from [192.168.48.23] (host-45-58-224-183.dyn.295.ca [45.58.224.183]) by smtp.infotech.no (Postfix) with ESMTPA id CFD38204153; Wed, 26 Jun 2019 16:14:25 +0200 (CEST) Reply-To: dgilbert@interlog.com Subject: Re: [PATCH 0/2] scsi: add support for request batching To: Paolo Bonzini , 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> <746ad64a-4047-1597-a0d4-f14f3529cc19@redhat.com> From: Douglas Gilbert Message-ID: <65e5ad25-a475-989a-ce3d-400a8c90cb61@interlog.com> Date: Wed, 26 Jun 2019 10:14:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <746ad64a-4047-1597-a0d4-f14f3529cc19@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-06-26 9:51 a.m., Paolo Bonzini wrote: > 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? I have no objections, just a few questions. To implement this is the scsi_debug driver, a per device queue would need to be added, correct? Then a 'commit_rqs' call would be expected at some later point and it would drain that queue and submit each command. Or is the queue draining ongoing in the LLD and 'commit_rqs' means: don't return until that queue is empty? So does that mean in the normal (i.e. non request batching) case there are two calls to the LLD for each submitted command? Or is 'commit_rqs' optional, a sync-ing type command? Doug Gilbert