Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp382339pxb; Thu, 21 Oct 2021 01:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGt8hHwas6W0Fgu32MJWizdjHIexGKidb1jQHUb/VONx3GnPvRrxBUZJw72Zk/l4DsY7Ay X-Received: by 2002:aa7:8b56:0:b0:44b:e510:a208 with SMTP id i22-20020aa78b56000000b0044be510a208mr4203146pfd.56.1634803826593; Thu, 21 Oct 2021 01:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634803826; cv=none; d=google.com; s=arc-20160816; b=wYoJAaWChv3rFY/apPkgBSuBCBV/gSsWcp2ssQ/wK3zpALv4DtCt+h2DuPM85oDJlm Ug76vbFu6wGVqc+QYyhcY3/WXorsSenM//gsjDlkWTL1WYGx57eOAxsZ097/aS+iM7PG Mc5j6Wd5rYRQOs/PMRTPVKeQn+w9nf3F1eXQ5QAxw0bJSZbh0XjHIH7A9ykgaffg3pyE Q4VPyMSADK+5impAbRcfImmR+ZppifI3H3z9jFAX1Mq5gDSM3/QPkUqW7FPJAMaavylO klRNMdaQrIEcxyJbKJ54mT4YqJkZqo95cjgE8AIhD2kRKkSAcxnaa/v6zknE/ryRsHwg UJVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=eubZzs6YvJmtVq/zHfKOay5WTRIM0VL+Wgaj9J8YzEE=; b=A5OfHSUdxBIiAneZsITZBvzrQjA/tpLYX4qZ7jfnKd79N63tzCp8SuhXXKorwsXpa0 ezqhbVxPVWCiTKXd9FN+vubfOkxSW0shcVoWtj/dLqfz5ZJGs6uW6+YVAnngyM+eonjb BXaszpQC6hTM/O14X1fi33XjO8TuHdkqIjTR+mknBCgj2ywQU1R+lu/EmMUehvniny/g pyXFMVsh1SVnAK3ErJY/F4hlH5LTeTiDflUb9fiQqMRE+9e1+G8qJeiCVQH9cwSXkKv5 BGCpEKX4i218N1jpLlCjlz1ddlFTOgkxvsXwhn1j516ihcc8rtv4+xJzMdHJ21HUBk9E hprg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l64si5895135pge.394.2021.10.21.01.09.50; Thu, 21 Oct 2021 01:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231371AbhJUIKq (ORCPT + 99 others); Thu, 21 Oct 2021 04:10:46 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:4011 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbhJUIKp (ORCPT ); Thu, 21 Oct 2021 04:10:45 -0400 Received: from fraeml742-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4HZg3t30tdz686th; Thu, 21 Oct 2021 16:04:10 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml742-chm.china.huawei.com (10.206.15.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 21 Oct 2021 10:08:26 +0200 Received: from [10.202.227.179] (10.202.227.179) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 21 Oct 2021 09:08:26 +0100 Subject: Re: [PATCH v2] blk-mq: Fix blk_mq_tagset_busy_iter() for shared tags To: Kashyap Desai , CC: , , , References: <1634550083-202815-1-git-send-email-john.garry@huawei.com> <2f09315210261e82c42a1353cab48dcd@mail.gmail.com> From: John Garry Message-ID: Date: Thu, 21 Oct 2021 09:08:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <2f09315210261e82c42a1353cab48dcd@mail.gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.179] X-ClientProxiedBy: lhreml717-chm.china.huawei.com (10.201.108.68) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/10/2021 19:49, Kashyap Desai wrote: >> -----Original Message----- >> From: John Garry [mailto:john.garry@huawei.com] >> Sent: Monday, October 18, 2021 3:11 PM >> To:axboe@kernel.dk >> Cc:ming.lei@redhat.com;linux-block@vger.kernel.org; linux- >> kernel@vger.kernel.org;kashyap.desai@broadcom.com;hare@suse.de; John >> Garry >> Subject: [PATCH v2] blk-mq: Fix blk_mq_tagset_busy_iter() for shared > tags >> Since it is now possible for a tagset to share a single set of tags, the > iter >> function should not re-iter the tags for the count of #hw queues in that > case. >> Rather it should just iter once. >> >> Fixes: e0fdf846c7bb ("blk-mq: Use shared tags for shared sbitmap > support") >> Reported-by: Kashyap Desai >> Signed-off-by: John Garry >> Reviewed-by: Ming Lei >> --- >> Diff to v1: >> - Add Ming's RB tag > Now I noticed proper host_busy in my test. Still CPU hogging is not > resolved, but issue addressed by this patch is resolved. > > Tested-by: Kashyap Desai Hi Jens, Can you kindly consider picking up this patch? I'm still waiting for feedback from Kashyap on whether we should optimize the other iter functions for shared tags, but this one is a fix. Thanks!