Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1545393lqp; Fri, 22 Mar 2024 21:11:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpOwsnXSvVCf4BMOeo5rUo3txI4Od5JcfFdmpTxoWMllIqCXUpjCQhZuMvto8bChbfyzSfRerNtZPoLrkbKZZ8vTNvxpRd4DZS1LjM/w== X-Google-Smtp-Source: AGHT+IFFN7cN5QHiOq0mwx3vfMUdranZzF4nu4l7LxA5U5eHazUPy3URRE8PTziByz7vH2g5zzBj X-Received: by 2002:a17:902:d4c3:b0:1e0:1f59:d672 with SMTP id o3-20020a170902d4c300b001e01f59d672mr2062834plg.36.1711167095835; Fri, 22 Mar 2024 21:11:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711167095; cv=pass; d=google.com; s=arc-20160816; b=pvfpEtRndzoSwC5xK0XmKaOpGsybmV8u/f7UQJAvlzmHmpI19fKKWhYRbmCHB5V1BW andgb/la0BDAXLVg7tvv1CMs2lJOoQktutqQ2ZPFkNv1aJqldpxiUm2E6SascT4VfQAO 1e8dv40S2rmBMTqOQ7zwzUzpBmLTzJEhA6csp0zdNLHtGnlvqWo3LsXY9hLgAjvXSEgC aDixLpuC3dR5lp0DA9MSgcgXqT+JbST02rnKzIvZAjHKgfJDYpFyXQ1Q8rd7MjFNrqtS 0E+mtrtW6i8dgDt1RbNpBfVtyll51LLJ5idLAaa0mP6nmZ/l6HogN8wBkECt71ILVRgw RTIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=Nqo2hRPbf7Snj18Z+Ulst8XapZfm9ULZVKzeo4Gib1E=; fh=2K0AJRLY2kcIRkn9/duHZKx8XmBjKXn/GlfsqbNpYrs=; b=Je6tFyDNp+O1M94d7+tqNSjxwuz1/rwE/L4YCrD3SGTl1cf0nRYh3lKHlaM1q0xF8L MtjYSnCbE0ddNOcpbWhjR1W0a78GyOyYlnzwKKvOXhhDe4qq6mAI3NTsvAQIdojWrTxy vhW/uu7P98u7F6N4fCXcPUVHon773S395esQXPqhYJKyhGSpwVtA5RwbrlSlVYRTKYaN OlanVV0s7DT98kD7NGXZOzAgk7joaTdLsXERd0tUn/HokIOKdoFslLDP/TEt0dFgXC5u JgDuZKPi/L6QP9FAtXp2HtJ607sBz4smexUNzRyCJZ2sfFSJtaE90Rnc9mH6SNno6B4/ pOGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-112222-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112222-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t7-20020a170902b20700b001e03f61a1ccsi792606plr.389.2024.03.22.21.11.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 21:11:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112222-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-112222-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112222-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C420CB213D9 for ; Sat, 23 Mar 2024 04:10:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C76974A1B; Sat, 23 Mar 2024 04:10:06 +0000 (UTC) Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 841101A38C9; Sat, 23 Mar 2024 04:10:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711167006; cv=none; b=kFfm4r4qrf65XpKoFBojEvxCHIiiGL4zQMK4UJ4mM+3hWd3/Z8dJev96DhngX/FbiDmPCo75xyMnC/LmtkTRLt52Er4Y6wKABp/ycAvaQk5Yua3ST+pksWUj6dGcTCjZJrQ4RiB5RPgKU4ddKn8llBLS2DSNszh5IV7vhTNCDUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711167006; c=relaxed/simple; bh=/s/4CkjZJs5Td7bDTyZ52hR+tKvru5vItbA30cuh/3I=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=K6lKzUaiOfy1Fz/hah3Jtg7rQTYifbpu4XL2aS2OtyKcQ2xKTlqKhjJSPx0YmJhhXHzj0ztVLcDearkyBzmAYE22QNz1WMMJo55VH5oJOfmJLn2/4XWDCtgFfqoMzG8K7OjbWpUsphGPj9BOQhUlJAFQe2w5kyOobN2Uo2MKEVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4V1m1Z60qZz4f3jdd; Sat, 23 Mar 2024 12:09:54 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id E3C641A017A; Sat, 23 Mar 2024 12:10:00 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP1 (Coremail) with SMTP id cCh0CgDHlxAXVv5li2w2Hw--.29792S3; Sat, 23 Mar 2024 12:10:00 +0800 (CST) Subject: Re: [PATCH -next RFC] blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW To: Randy Dunlap , Yu Kuai , axboe@kernel.dk, tj@kernel.org, hch@lst.de, ming.lei@redhat.com, josef@toxicpanda.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" References: <20240323025322.1310935-1-yukuai1@huaweicloud.com> From: Yu Kuai Message-ID: Date: Sat, 23 Mar 2024 12:09:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgDHlxAXVv5li2w2Hw--.29792S3 X-Coremail-Antispam: 1UD129KBjvJXoWxJr1UCF43CF4fKw18Zr47Jwb_yoW8Xry3p3 y3Ja1akr4qyrnrCF17Jw1aqFWrtayUJr4UAwn8ur1fAryjk343tr1vvw18ZFy0qFZ2g3y8 uryUGrW5AF18A37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUU9214x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvEwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2Y2ka 0xkIwI1lc7I2V7IY0VAS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7x kEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E 67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8Jw CI42IY6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr1UMIIF0xvE42xK8VAvwI8IcIk0rVW3JVWr Jr1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYx BIdaVFxhVjvjDU0xZFpf9x0JUZa9-UUUUU= X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ Hi ! 在 2024/03/23 11:17, Randy Dunlap 写道: > Hi-- > > On 3/22/24 19:53, Yu Kuai wrote: >> From: Yu Kuai >> >> One the one hand, it's marked EXPERIMENTAL since 2017, and looks like >> there are no users since then, and no testers and no developers, it's >> just not active at all. >> >> On the other hand, even if the config is disabled, there are still many >> fields in throtl_grp and throtl_data and many functions that are only >> used for throtl low. >> >> At last, currently blk-throtl is initialized during disk initialization, >> and destroyed during disk removal, and it exposes many functions to be >> called directly from block layer. Hence I'm planning to optimize >> blk-throtl and finially support building it as kernel module. Remove >> throtl low will make the work much easier. >> >> Signed-off-by: Yu Kuai >> --- >> block/Kconfig | 11 - >> block/bio.c | 1 - >> block/blk-stat.c | 3 - >> block/blk-sysfs.c | 7 - >> block/blk-throttle.c | 901 ++----------------------------------------- >> block/blk-throttle.h | 26 +- >> block/blk.h | 11 - >> 7 files changed, 45 insertions(+), 915 deletions(-) > > Here are 2 more places to patch: > > Documentation/ABI/stable/sysfs-block: CONFIG_BLK_DEV_THROTTLING_LOW is enabled. > arch/loongarch/configs/loongson3_defconfig:CONFIG_BLK_DEV_THROTTLING_LOW=y Thanks for the notice, I'll update the patch if people agree to remove throttle low. Thanks, Kuai > >