From patchwork Wed Nov 13 13:36:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 179307 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9615130ilf; Wed, 13 Nov 2019 05:40:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwgTLHgIoQLY84fk00DAYeuFs7/8j5eF1+cc0J1Z5Hp9NxqN6hMD2CXAjC6NizffTFUMDxH X-Received: by 2002:a17:906:134c:: with SMTP id x12mr2849787ejb.269.1573652451870; Wed, 13 Nov 2019 05:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573652451; cv=none; d=google.com; s=arc-20160816; b=cdpL+KHqW3gDGVOXtd23uqt11q1nzTfhVhYG871giIgjj0Vzhk7zgGdjB1akufWM3z KUljVr75/41GkcyaoyarLA7JTq8Rkj6A9tpaU5mXAILc1c0NtCVqpmdHi+ePn8kLvhLS C7mdQUYvomOX+F2e/GFs/eiXY3q6feQRZ6aukX8EdYOtqTycybGqmMlHHwXOm2y13RD/ MyWehYeDxVSVC8JYkOqw5W8At/L8U0VOuYCRBfgFK7Gza2hKMiIOBl944RhuPpxgLAy8 dAqAM/psrHEHRGrR67kOnP9Mw/D3PBZHwNd3KTWDqcBTGMJg/e3UCUqkYAjEQGd4pNA6 lfDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=2yQb3BvT0FnefLAGdOh0CV6R/nk7cWF3qUmSEa95tPw=; b=mIin3BATQbZLlW6aI5qL6Ib3bnutsTz9u1In3NDAqtrWqQTBJyYB5R6AgnP3rq12HZ zOGIU3sNlncXdiDXppRvS65QQ9U8WnqTVei5oS7FOIbkf51gur1/g4PXhFKISy+znUJ6 yleQ6WeZbBhjWzW/9NhOodc4wADoct4pXUKylPvI1DHUpRHwQ0U0T3avk+LvhVZ7v38p Mjrce0TXA6MjcE+yof9wIdZoOOXJfjg+EXRcWB9Gqh4OAuNxyMxQ47ZxETb8oNmrdK0y HfLAT7ujsLYTMuj3E8m0eYDpeBDohR1DAsZ9HGtIqdiCelTc4iSak46Y/99VPazTe9VD xQbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si1173263ejq.289.2019.11.13.05.40.51 for ; Wed, 13 Nov 2019 05:40:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727401AbfKMNk3 (ORCPT ); Wed, 13 Nov 2019 08:40:29 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:40766 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727129AbfKMNk3 (ORCPT ); Wed, 13 Nov 2019 08:40:29 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 226C13C6C4E38D3107F6; Wed, 13 Nov 2019 21:40:24 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Wed, 13 Nov 2019 21:40:14 +0800 From: John Garry To: , , CC: , , , , , , , John Garry Subject: [PATCH RFC 0/5] blk-mq/scsi: Provide hostwide shared tags for SCSI HBAs Date: Wed, 13 Nov 2019 21:36:44 +0800 Message-ID: <1573652209-163505-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This is a 2nd stab at solving the problem of hostwide shared tags for SCSI HBAs. As discussed previously, Ming Lei's most recent series in [0] to use hctx[0] tags for all hctx for a host was a bit messy and intrusive, so seen as a no go. Indeed, blk-mq is designed for separate tags per hctx. This series introduces a different approach to solve that problem, in keeping the per-hctx tags but introducing a new separate shared set of tags, which SCSI HBAs can use for a hostwide tags. Adding support for shared tags should not have a significant performance impact for when shared tags are not requested. Currently I just fixed up the hisi_sas driver to use the shared tags, but should not be much trouble to change others over. Patch #3 is quite experimental at this point. I also threw in a minor tidy-up patch. [0] https://lore.kernel.org/linux-block/20190531022801.10003-1-ming.lei@redhat.com/ Hannes Reinecke (1): scsi: Add template flag 'host_tagset' John Garry (3): blk-mq: Remove some unused function arguments blk-mq: Facilitate a shared tags per tagset scsi: hisi_sas: Switch v3 hw to MQ Ming Lei (1): blk-mq: rename BLK_MQ_F_TAG_SHARED as BLK_MQ_F_TAG_QUEUE_SHARED block/blk-core.c | 1 + block/blk-flush.c | 2 + block/blk-mq-debugfs.c | 4 +- block/blk-mq-tag.c | 91 +++++++++++++++++++++++++- block/blk-mq-tag.h | 8 +-- block/blk-mq.c | 91 +++++++++++++++++++------- block/blk-mq.h | 11 +++- drivers/scsi/hisi_sas/hisi_sas.h | 3 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 43 ++++++------ drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 85 ++++++++++-------------- drivers/scsi/scsi_lib.c | 2 + include/linux/blk-mq.h | 5 +- include/linux/blkdev.h | 1 + include/scsi/scsi_host.h | 3 + 14 files changed, 242 insertions(+), 108 deletions(-) -- 2.17.1