Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp286394lqp; Fri, 12 Apr 2024 19:06:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOczOlCgSVtd1yBzAIwdNxyTOG/tlaga850RUbyqCMfD8FSEtbDSUqHXHJ1j9PkpBPN+E9HCJMRaFCuExYyLfRseEeZIy4jjTRxz2EKQ== X-Google-Smtp-Source: AGHT+IHVQq7MINbN4Uxni3OEgN9i8tHxP1Ymx7ULT+lX9stYjwCLLEwSU+5jwDZ505nIWZmoEF9j X-Received: by 2002:a05:6871:4101:b0:22e:c6b2:849e with SMTP id la1-20020a056871410100b0022ec6b2849emr5070956oab.9.1712973982893; Fri, 12 Apr 2024 19:06:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712973982; cv=pass; d=google.com; s=arc-20160816; b=QKm/+vhXS9Oevse1aNRijxS+ClA/eor2ucSXk19iqfhYpe1ksZ01acKY5/1n5Z0M7w 9lrfy2so0y8n5b5N1SRX1BUr99w9licBXDkHK3zJ6b1k1fdHWuzo90j3JIHzZ6XVaeGE QjRC7rnjSIKR5qZfz0LEnbiN2ZQG1BbBSKhn28qcMkeXesMtHW3Uufuuazi04StO59nJ Pw5GhAcv2Tz0gnqzKE8hgf8IXH+gHDmPSBwwaJUcbgcOncvTP+wDZWslrmHKxDm8NYtq AD2sKun515qiJSAbjbXD2UqJIkwC90HQ9/t1gqeo2g3utVsuUIOgrFKShI/PqAbBxEHw RWFQ== 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=E3C+d+XvhRGu7ozWUIKytTuMGf4IxZN/O1c9JAenTVs=; fh=5bajn1kmo2FZI9wvFID8pBbFodxCTS35a0WawSvaetY=; b=cXrgY4zZrhCH8iyBdxV5r80k6QWRkYonFaiVyXxPsXn5aQH/qNQMt7pLobCtqvb9kS lswv+MaLpv1i7sQ278AOfdVyKLB1IOwhFpG2q4maqxNc5e0+LiVKmihBp1sOLZoqWmBP OFbXC3KCad9ZqijNg0SZZcae+zEIYi4zA+3HeMHnaAy9K5S40zldC1DhU1jg9YmmOCdF 6hhSx3obqzpHiDS1zcKlyLyx9cQIS1eOLaOdE3jSMuIeWKonZLPzxs+DjiV/o4inoDvc 0QkGJGyP7uqMco7wREvrAx3dvG2rsImLZ6E/YmeFQ2qlBp3dJt2KRCgeDcYzL5TWni6h dGQg==; 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-143510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143510-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m16-20020a05622a055000b004347ae4c6c8si4840848qtx.373.2024.04.12.19.06.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 19:06:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-143510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143510-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9AB311C212C4 for ; Sat, 13 Apr 2024 02:06:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC6E714A8E; Sat, 13 Apr 2024 02:06:13 +0000 (UTC) Received: from dggsgout12.his.huawei.com (unknown [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 8792E442C; Sat, 13 Apr 2024 02:06:11 +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=1712973973; cv=none; b=I9QmlmOUk5f5cO6y8MN/tZTMqub+WbSsH8jG1lkQ9bG14JJ6LbTU1wriYuJEhcdEybvJF3fZWjW0Rdx1JZqLRhDFnOHaCQYoo+WCl2wMKFpeWsBOcYqxNFUlD1jgjdGJGFlYw5N+jBpj6+dsQ/KKn9QRIj/HC/bsEM+zumz+pwg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712973973; c=relaxed/simple; bh=+ETQMhi2fRULLMuIe7XIGB4fHAAgtUZrpLjbPwhBsbA=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=bZ8qFLZ8uSR6nEpk/qlfWhj6l504SdtTr5fuincGctjwlkrEbc8r0rwu+EvsFzkMCdD7Y/Zj7URmEWa5B3IuWRpjhvJsPbo7K66+5J1rw5FqjGxfgfJIBYVOTvVHvFs5MVFvv25k4nAUyPh7MK6U/wIXCTrlhg98qQtJj467uQ0= 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.93.142]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4VGcGp2tNBz4f3jdT; Sat, 13 Apr 2024 10:05:54 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 5A3171A0175; Sat, 13 Apr 2024 10:06:01 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP1 (Coremail) with SMTP id cCh0CgCXaBGI6BlmPXJbJw--.20790S3; Sat, 13 Apr 2024 10:06:01 +0800 (CST) Subject: Re: [PATCH RFC v2 5/6] blk-throttle: support to destroy throtl_data when blk-throttle is disabled To: Tejun Heo , Yu Kuai Cc: axboe@kernel.dk, chenhuacai@kernel.org, josef@toxicpanda.com, jhs@mojatatu.com, svenjoac@gmx.de, raven@themaw.net, pctammela@mojatatu.com, qde@naccy.de, zhaotianrui@loongson.cn, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, cgroups@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" References: <20240406080059.2248314-1-yukuai1@huaweicloud.com> <20240406080059.2248314-6-yukuai1@huaweicloud.com> From: Yu Kuai Message-ID: <1bb85208-1224-77dc-f0b2-7b7a228ef70b@huaweicloud.com> Date: Sat, 13 Apr 2024 10:06:00 +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=gbk; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgCXaBGI6BlmPXJbJw--.20790S3 X-Coremail-Antispam: 1UD129KBjvdXo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trlr6x35dzhxuhorxvhhfrp/ Hi, ?? 2024/04/13 2:05, Tejun Heo ะด??: > Hello, > > On Sat, Apr 06, 2024 at 04:00:58PM +0800, Yu Kuai wrote: >> From: Yu Kuai >> >> Currently once blk-throttle is enabled, it can't be destroyed until disk >> removal, even it's disabled. >> >> Also prepare to support building it as kernel module. > > The benefit of doing this whenever the ruleset becomes empty seems marginal. > This isn't necessary to allow unloading blk-throttle and > blkg_conf_exit_blkg() is also necessary because of this, right? Yes, this is why blkg_conf_exit_blkg() is necessary. I think that we need find an appropriate time to unload blk-throttle other than deleting the gendisk. I also think of adding a new user input like "8:0 free" to do this. These are the solutions that I can think of for now. Thanks, Kuai > > Thanks. >