|
|
Log in / Subscribe / Register

scsi: add support for request batching

From:  Paolo Bonzini <pbonzini-AT-redhat.com>
To:  linux-kernel-AT-vger.kernel.org, kvm-AT-vger.kernel.org
Subject:  [PATCH 0/2] scsi: add support for request batching
Date:  Thu, 30 May 2019 13:28:09 +0200
Message-ID:  <20190530112811.3066-1-pbonzini@redhat.com>
Cc:  jejb-AT-linux.ibm.com, martin.petersen-AT-oracle.com, linux-scsi-AT-vger.kernel.org, stefanha-AT-redhat.com
Archive-link:  Article

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(-)

-- 
2.21.0



Copyright © 2019, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds