virtio-scsi: Implement change_queue_depth for virtscsi targets
authorVenkatesh Srinivas <venkateshs@google.com>
Sun, 6 Jul 2014 14:39:27 +0000 (16:39 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:00 +0000 (17:17 -0400)
commit761f1193f299873236dbc21277864d70cb7ba8a3
treea01e870c27f8512c58b51f340572f5b02e8d162a
parent938ece711c5b1ba4fa8e3b9fc8cc03843ae82a5b
virtio-scsi: Implement change_queue_depth for virtscsi targets

change_queue_depth allows changing per-target queue depth via sysfs.

It also allows the SCSI midlayer to ramp down the number of concurrent
inflight requests in response to a SCSI BUSY status response and allows
the midlayer to ramp the count back up to the device maximum when the
BUSY condition has resolved.

Signed-off-by: Venkatesh Srinivas <venkateshs@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/virtio_scsi.c