From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: [RFC PATCH 0/2] block,scsi: support host-wide tagset Date: Tue, 4 Apr 2017 14:07:43 +0200 Message-ID: <1491307665-47656-1-git-send-email-hare@suse.de> Return-path: Received: from mx2.suse.de ([195.135.220.15]:50262 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752935AbdDDMIO (ORCPT ); Tue, 4 Apr 2017 08:08:14 -0400 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Jens Axboe Cc: Omar Sandoval , "Martin K. Petersen" , James Bottomley , Christoph Hellwig , Bart van Assche , linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, Hannes Reinecke 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(-) -- 1.8.5.6