From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AFD97C77B7C for ; Wed, 10 May 2023 03:27:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235286AbjEJD1x (ORCPT ); Tue, 9 May 2023 23:27:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235634AbjEJD1E (ORCPT ); Tue, 9 May 2023 23:27:04 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23BB110EC; Tue, 9 May 2023 20:24:59 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.169]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4QGL4Q56JCz4f3l8M; Wed, 10 May 2023 11:24:54 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP3 (Coremail) with SMTP id _Ch0CgBH9CGHDltkLdqYIQ--.29139S3; Wed, 10 May 2023 11:24:56 +0800 (CST) Subject: Re: Situation of CONFIG_BLK_WBT_MQ after commit b11d31ae01e6 ("blk-wbt: remove unnecessary check in wbt_enable_default()") To: Lukas Bulwahn , Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, Linux Kernel Mailing List , "yukuai (C)" References: From: Yu Kuai Message-ID: <8a86ba08-cde4-97a4-d7e2-dc340609381c@huaweicloud.com> Date: Wed, 10 May 2023 11:24:55 +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=utf-8; format=flowed Content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43ZEXa7IUbPEf5UUUUU== X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 在 2023/05/08 12:37, Lukas Bulwahn 写道: > Dear Yu Kuai, dear Christoph, dear Jens, > > > The commit b11d31ae01e6 ("blk-wbt: remove unnecessary check in > wbt_enable_default()") removes the only reference to the config > BLK_WBT_MQ in the kernel tree. > > The commit comes with the statement "If CONFIG_BLK_WBT_MQ is disabled, > wbt_init() won't do anything.". The statement "If CONFIG_BLK_WBT is > disabled, wbt_init() won't do anything." (note: CONFIG_BLK_WBT vs. > CONFIG_BLK_WBT_MQ) is certainly true, but I do not see that "If > CONFIG_BLK_WBT_MQ is disabled, wbt_init() won't do anything.", but I > believe it would simply do what wbt_init() does with CONFIG_BLK_WBT > being enabled. > > Now, it seems that with this commit applied, the intended switch of > the config BLK_WBT_MQ is gone, and the config really now has no effect > at all. > > So, I am a bit puzzled: > > 1. Either the config BLK_WBT_MQ does have an effect somewhere, but one > cannot find its reference with 'git grep -i "BLK_WBT_MQ" .' --- so, my > investigation is just incomplete or wrong, or > > 2. We really do not need this further build config BLK_WBT_MQ beyond > the other configs already there --- then this config should just be > removed, or > > 3. the commit unintentionally broke the purpose of the config > BLK_WBT_MQ --- then this commit above should be reverted. Thanks for the report, it's the above case and it's my mistake. I will fix this. Kuai > > I would be happy if you could provide some guidance on what is the > situation with config BLK_WBT_MQ. > > Currently, I am guessing it is option 2 and the config BLK_WBT_MQ > simply can be deleted, but I am really unsure. Probably, this build > option is not used by many people and its effect is hardly noticed, if > one does not specifically check for that in the running system. > > > Best regards, > > Lukas > . >