Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp758214rwb; Fri, 23 Sep 2022 03:53:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6vVuWorULBcep/afhdH3UPMFm3aF3KwF2zFim5Be+f34vX1R3o3SIH3dsHyueTz8Kwge4h X-Received: by 2002:a17:90a:13c8:b0:200:17ca:f183 with SMTP id s8-20020a17090a13c800b0020017caf183mr20004529pjf.104.1663930413756; Fri, 23 Sep 2022 03:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663930413; cv=none; d=google.com; s=arc-20160816; b=YdgQhysd8he1uY3ClHC2fY0dqojN0oCROa6p3dIhmgev0KXR0myQyd4Sy+Q9MndK+8 mcIYVzSGdFIyYStg/cDp4NkrIzVENpqWPKWMdjm4c6csgBcBzADeWXax/xIEwsUkbP/j rg0s/K+nx6KnAW0W+aDYbDrYhN+ofSRKi4zM6VfRDW3htyfPo+u+2mfOX7QBriT6uDqG DYFu3A2dSd9r08hZYnPt4FM0rKHUkggmSBfdurEGgeX9R/cvBENzAg2PRkN80aKJSNLr 0PIDtRkRpmvXShOArP4O126ut/PQfjBlsN9AbXkP9Yqdo9cP9vn3yDCM1Nv9sPYQ2CjX HhZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=UJYXbcXdXwrMmGXTvMsZ/ahyNz2j3N6MrhiXvk/ds4I=; b=yDdABmhxM0Ftt7lnswey3u2P95heQ3HHLBMxo/q4uV66CA8FJbNB7oxioOWc7LQ1hU cKHEP8wRoF/Uc9UZW348lpUMId1uHc8vxa/g8cS3W9AR0GcEjzqgq8WPY9g7KgIoSx6Z TzCkaN46sWxEvqnSKHNyrkfculvCAo8vOh0uLWViI261aHyS8kKN0pk2h3ljKxgyTnkN HfShEzfoOiKzFEfnkYxCsU1LlOCWDc502rWZEVIq7gqZvnTlJN2okrzpcsx4K4axNqSA biQ5/s2oBT2Lv4iOAmvCx+vNA+Q0fWY+f5Ty3M1ChK36wi1HQM6c4JUZ62HBIYLyGayU a+fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a056a00194d00b0053e8d0c9909si9780036pfk.221.2022.09.23.03.53.22; Fri, 23 Sep 2022 03:53:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232039AbiIWJva (ORCPT + 99 others); Fri, 23 Sep 2022 05:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231955AbiIWJvD (ORCPT ); Fri, 23 Sep 2022 05:51:03 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3636DB6D78; Fri, 23 Sep 2022 02:50:53 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4MYnR63schzKFvw; Fri, 23 Sep 2022 17:48:50 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP2 (Coremail) with SMTP id Syh0CgDXKXN5gS1jPI4UBQ--.6826S3; Fri, 23 Sep 2022 17:50:51 +0800 (CST) Subject: Re: [PATCH v3 3/5] block, bfq: don't disable wbt if CONFIG_BFQ_GROUP_IOSCHED is disabled To: Christoph Hellwig Cc: jack@suse.cz, paolo.valente@linaro.org, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai1@huaweicloud.com, yi.zhang@huawei.com, "yukuai (C)" References: <20220922113558.1085314-1-yukuai3@huawei.com> <20220922113558.1085314-4-yukuai3@huawei.com> From: Yu Kuai Message-ID: <988a86f2-e960-ba59-4d41-f4c8a6345ee9@huaweicloud.com> Date: Fri, 23 Sep 2022 17:50:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgDXKXN5gS1jPI4UBQ--.6826S3 X-Coremail-Antispam: 1UD129KBjvdXoW7Jw1xXry8uw15Gw4rGw1UGFg_yoWfKFcEqF WYgrWDC3y7Ww1kX3Waqrs8XrWvgrWrurZ5ArWSq3ySyryDWF48AF4vyrZIvw1fJ3y8KFsx Wa9xXrW2vr429jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb4xFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCYjI0SjxkI62AI1cAE67vI Y487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI 0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y 0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8 JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x0JUdHUDUUU UU= X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Christoph ?? 2022/09/23 16:56, Christoph Hellwig ะด??: > On Thu, Sep 22, 2022 at 07:35:56PM +0800, Yu Kuai wrote: >> wbt and bfq should work just fine if CONFIG_BFQ_GROUP_IOSCHED is disabled. > > Umm, wouldn't this be something decided at runtime, that is not > if CONFIG_BFQ_GROUP_IOSCHED is enable/disable in the kernel build > if the hierarchical cgroup based scheduling is actually used for a > given device? > . > That's a good point, Before this patch wbt is simply disabled if elevator is bfq. With this patch, if elevator is bfq while bfq doesn't throttle any IO yet, wbt still is disabled unnecessarily. I have an idle to enable/disable wbt while tracking how many bfq_groups are activated, which will rely on my another patchset, which is not applied yet... support concurrent sync io for bfq on a specail occasion. I think currently this patch do make sense, perhaps I can do more work after the above patchset finally applied? Thanks, Kuai