Skip to content

RFC block,scsi: support host-wide tagset

Hannes Reinecke linux-block linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: Implement global tagsetblock/blk-mq-tag.c block/blk-mq.c include/linux/blk-mq.h+17 -63 replies
2/2scsi: Add template flag 'host_tagset'drivers/scsi/scsi_lib.c include/scsi/scsi_host.h+7 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] block,scsi: support host-wide tagset

Hi all,

as discussed recently most existing HBAs have a host-wide tagset which does not map easily onto the per-queue tagset model of block mq. This patchset implements a flag BLK_MQ_F_GLOBAL_TAGS for block-mq, which enables the use of a shared tagset for all hardware queues. The second patch adds a flag 'host_tagset' to the SCSI host template, which allows drivers to enable the use of the global tagset.

This patchset probably has some performance implications as there is a quite high probability of cache-bouncing when allocating tags. Also I'm not quite sure if the implemented tagset sharing is the correct way to handle things.
So this can be considered an RFC.

As usual, comments and reviews are welcome.

Hannes Reinecke (2):
block: Implement global tagset
scsi: Add template flag 'host_tagset'

 block/blk-mq-tag.c       | 12 ++++++++----
 block/blk-mq.c           | 10 ++++++++--
 drivers/scsi/scsi_lib.c  |  2 ++
 include/linux/blk-mq.h   |  1 +
 include/scsi/scsi_host.h |  5 +++++
 5 files changed, 24 insertions(+), 6 deletions(-)
Signature · 1 line
1.8.5.6