Skip to content

scsi: Support devices that don't have a cmd_per_lun limit

Mike Christie linux-scsi virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scsi: Fix can_queue commentsinclude/scsi/scsi_host.h+9 -121 reply
2/4scsi: qedi: Fix command overqueueingdrivers/scsi/qedi/qedi_main.c+2 -04 replies
3/4scsi: Support scsi_devices without a device wide limitdrivers/scsi/hosts.c drivers/scsi/scsi_scan.c include/scsi/scsi_host.h+21 -136 replies
4/4virtio-scsi: Support scsi_devices without a device wide limitdrivers/scsi/virtio_scsi.c+4 -12 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchJohn Garry
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] scsi: Support devices that don't have a cmd_per_lun limit

The following patches were made over Linus's and Martin's 7.1 trees. They fix an issue where for virtio-scsi we export a lot of non-scsi devices but are getting throttled by the cmd_per_lun_limit too early. For example we export 1 or more NVMe or block devices and would like to just pass command to them in way where virtio-scsi's hw queue limits match the physical hardware. Or in some cases we are doing cgroup based throttling on the host side, and we don't want the guest to block IO when the host knows we have extra bandwidth.

The patches add a new cmd_per_lun value so drivers can indicate when to avoid tracking queueing at the device wide level. They then rely on just the block layer hw queue limits. And the patches convert virtio-scsi. They also fix some can_queue related issues discovered while testing/reviewing.