Return-Path: Subject: Re: [RFC PATCH 0/2] block,scsi: support host-wide tagset To: Ming Lei References: <1491307665-47656-1-git-send-email-hare@suse.de> Cc: Jens Axboe , Omar Sandoval , "Martin K. Petersen" , James Bottomley , Christoph Hellwig , Bart van Assche , linux-block , Linux SCSI List From: Hannes Reinecke Message-ID: Date: Tue, 4 Apr 2017 19:10:00 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed List-ID: On 04/04/2017 05:59 PM, Ming Lei wrote: > On Tue, Apr 4, 2017 at 8:07 PM, Hannes Reinecke wrote: >> 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. > > Just be curious, why is multi hard queue used for this case? Are there > some real cases in SCSI? > Yes. This is required by basically every driver in drivers/scsi which would in theory be able to support scsi-mq (ie lpfc, qla2xxx, mpt3sas, and possibly fnic). Each of them support several submission/completion queues, but every one of them has a host-wide tag map, too. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)