From patchwork Wed Aug 19 15:20:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 247979 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp561255ils; Wed, 19 Aug 2020 08:26:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy5HqeOS81VGL5spEZIxfx/7vqHIPXahoXl8MCW306dwm3dyyfwZj1+RW8dHlh5ezm4yUl X-Received: by 2002:a17:906:c29a:: with SMTP id r26mr24904603ejz.153.1597850801851; Wed, 19 Aug 2020 08:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597850801; cv=none; d=google.com; s=arc-20160816; b=VkeohZAZBqBUqtWxon9YjC/Se1Ff8kTmsxxsmAAfqM0UAHCrbRmwtpzOwQZjSrr7o4 sCUO521+AXZpuoTMRwUyR5APu9p/v0OwxHcIRIXhLNh8gAUcAdigAK0Jt7etDfashjl3 NFiwakuWEqj2i99Bds48Pp0xJ/NQUmGH3472wL1dEL1J1FdrSzseIB1aF+8Ocxxcd9HM XN/hAu/MGl/RZ6g6Ucm+i+ADSF5aPAY3xHolNFApQcFzJoj2bzd7+yUiJfdWOx9INHw5 krl+2uIt1dbI98eRyx0q/yFRBHqbjn1ghrE2CAzu/JiWrMWIYAIZUMbYLXxS2IP5pYRU Hz6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=E/bhtQJS9203LDu8sjeU5sYywzfv/84vcalDdZSd9RA=; b=lrqQ1S5ZqKdDTMMXfOi2NpR6RgpoA1BK6wFeujtV238OActK70CIvJkWeWCleS5AgU kGqeTalkogONg41B5yoeM/nYIsTr2jJms3Org7KVBA7llvh/vs/W6ULYrVWPQLD9N61F PwB4zKeF9vhjS86MBQEazw35EgVoEbjrr7z231E70fAODUyF7GGGfhPDGDQJ9QBSLTqV RNma4tbepPnMb36oUqSNEPEvtNPtGWJIDS6U89vI2s0RSmnuQYYG5WLBGlADEwEehhkZ r0d/jKM93sSloIT2vBpnVzp/GQKBlk+55Zb2KGqgrSpaS2eTbCUxKXFSviQFHHWiIYyv /5MQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si15932517ejc.182.2020.08.19.08.26.41 for ; Wed, 19 Aug 2020 08:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728876AbgHSP0a (ORCPT ); Wed, 19 Aug 2020 11:26:30 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39652 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728735AbgHSPZW (ORCPT ); Wed, 19 Aug 2020 11:25:22 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D749C98872B15E6472CE; Wed, 19 Aug 2020 23:24:58 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Wed, 19 Aug 2020 23:24:48 +0800 From: John Garry To: , , , , , , , , , , CC: , , , , , , , , John Garry Subject: [PATCH v8 02/18] blk-mq: Rename blk_mq_update_tag_set_depth() Date: Wed, 19 Aug 2020 23:20:20 +0800 Message-ID: <1597850436-116171-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1597850436-116171-1-git-send-email-john.garry@huawei.com> References: <1597850436-116171-1-git-send-email-john.garry@huawei.com> 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 From: Hannes Reinecke The function does not set the depth, but rather transitions from shared to non-shared queues and vice versa. So rename it to blk_mq_update_tag_set_shared() to better reflect its purpose. Signed-off-by: Hannes Reinecke [jpg: take out some unrelated changes in blk_mq_init_bitmap_tags()] Signed-off-by: John Garry --- block/blk-mq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.26.2 diff --git a/block/blk-mq.c b/block/blk-mq.c index 8f95cc443527..50de9eb60466 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2880,8 +2880,8 @@ static void queue_set_hctx_shared(struct request_queue *q, bool shared) } } -static void blk_mq_update_tag_set_depth(struct blk_mq_tag_set *set, - bool shared) +static void blk_mq_update_tag_set_shared(struct blk_mq_tag_set *set, + bool shared) { struct request_queue *q; @@ -2904,7 +2904,7 @@ static void blk_mq_del_queue_tag_set(struct request_queue *q) /* just transitioned to unshared */ set->flags &= ~BLK_MQ_F_TAG_QUEUE_SHARED; /* update existing queue */ - blk_mq_update_tag_set_depth(set, false); + blk_mq_update_tag_set_shared(set, false); } mutex_unlock(&set->tag_list_lock); INIT_LIST_HEAD(&q->tag_set_list); @@ -2922,7 +2922,7 @@ static void blk_mq_add_queue_tag_set(struct blk_mq_tag_set *set, !(set->flags & BLK_MQ_F_TAG_QUEUE_SHARED)) { set->flags |= BLK_MQ_F_TAG_QUEUE_SHARED; /* update existing queue */ - blk_mq_update_tag_set_depth(set, true); + blk_mq_update_tag_set_shared(set, true); } if (set->flags & BLK_MQ_F_TAG_QUEUE_SHARED) queue_set_hctx_shared(q, true);