Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp113331lqb; Tue, 16 Apr 2024 10:09:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX20UWR4YqYLFKNcHIwihiQp29O9R3fEFe8266aGlXwmUp81KdbH8xfPqAs2+RrTjrNv44SnoVUuqxInyFXwZvtp2G4ptplIiE+WV5n8w== X-Google-Smtp-Source: AGHT+IFBAxH6sOvWDD4D2GeNiNIbqlEgmAi90OXmS55d7+S/xAtzF7RsNWGnAM950FsA0K9eM64Q X-Received: by 2002:a05:6512:970:b0:518:aad4:e3da with SMTP id v16-20020a056512097000b00518aad4e3damr5203502lft.23.1713287382397; Tue, 16 Apr 2024 10:09:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713287382; cv=pass; d=google.com; s=arc-20160816; b=m54+Jpyy4Z9v5DL+1bMohwgZfekcUIW1zt9qPGmijE5xX19YiUJvt0KiE0HUBAi0JT 6YElTyAYR/SZ4F3lTPkpM5big78ooz3f9j2Z/lkUdx8wsPWZt8U1qAlzviqOY6lzovIa yDEdmPPMU23q7KYbl8b4hxumOpCdFxuiFZjsICUxymGaZ5UtL1zYUNLSH1uvs5pfV5// S0bPLf3ewj31eTFpOpOYZVNZMl/sJmPm5vg6pten7uRNyh6Jg6U4Y1EhPZOrEQ5a0//x tbGiWK166Rw35m1x8BCMlNm1I75LYyP7UxrM3c812PSzVROUVHBMNhXt7XJYAfi4pWar fqbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=MHUy3BTU7vf8OKYXFB2qGMv/9WxQZ2YHgvNS8n+tlds=; fh=ffcaU0TKgyD3WNFPmZbfhdwnPrtm68RLOcAdhqb4t2I=; b=YJyzkOBNwQ8lWATrplUAokf1fDjCIsxacdFzinTzYQup4SXN60mswReE0WjPoRwtFH 7JCuYs2ymewzarFYXb6pMVfblOXfPXRxAGHYFXlGSL5wAuR+Uf2aw1y1YvV61z+Yy+JY xKZ8tT3ZjTg9BUR5j+dQ2Drmw/EO2Phc9+D3xo7O49TNk+yDtvumOFKNmrvKvB6JEycL 5aXWJZxEFL2XN0x9z/v4sryKKb6MMbkWUT82KVgTUNeUnVJKeaQD+zDBnKqTfHKJIEqZ r5iz7OWWphJxpukZLrZt9dNEhis0VmlOvhFbp8gpQNVIO5nW7dBb2+PwcdqZkpPltjJk mVIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Wqy9Q+bD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-147284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147284-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y5-20020a50bb05000000b0056c38f7295fsi5743148ede.602.2024.04.16.10.09.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 10:09:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Wqy9Q+bD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-147284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147284-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 204E81F241AF for ; Tue, 16 Apr 2024 17:09:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE7671327FB; Tue, 16 Apr 2024 17:09:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Wqy9Q+bD" Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2FCC10A22; Tue, 16 Apr 2024 17:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713287371; cv=none; b=q0RPQ8QQ96eMzWLQk4SllFlIeE+ozxdTdrIZyTVBR44qbgusaRidMju2YoOhnjn3foHGpo+tmBWVx/oruy0Sk1Cepn9W5QuR7CwTxEc6Fu5ro/5ZKOZUVmjHnzG/yGY5RQ5xWzXlY4JnFAx7beSh8ajPSTUFPUKvsGAEvtOZY/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713287371; c=relaxed/simple; bh=DUpZQcj0Q4Y4tjm4OpJ+gbfAVkEDRRSpm1tH1KPWzqk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rydzMat18AG5rMnWB146hATCZcplOsPSt8ydVr4m9TBI/uwRGx9XnKK6f3YPk1IrIuumjiw2Dk68UOblWaSuHhbkeg7ZTBtdxQLddto0HL88gcqtdbHLghzV25AmDSvwolmFSfj4VJnYtbMi7BmCkVqHaP5st5aMh/SkD3IQVXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Wqy9Q+bD; arc=none smtp.client-ip=209.85.215.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-53fbf2c42bfso3561276a12.3; Tue, 16 Apr 2024 10:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713287370; x=1713892170; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=MHUy3BTU7vf8OKYXFB2qGMv/9WxQZ2YHgvNS8n+tlds=; b=Wqy9Q+bDAa5/vPtuIGxiHI97b5f12V5RVbeWNYH8q3LXJJfzl5TdP51bvyo27/X2Lm Sa/ecluxj34NU6scSslr5ls69GZ0PQA4OjuV1fMW2Caqbujg8g1JtzYe6M/3MC5mY1TA X5hKrsOUCP+z6+fcQlz2RyEY2LbXB+JErO8XqGuIpa8vxNx2GBkP1HL/bWf8fqUKpROC 4olIU5PmcN8ov5XUp8LZWgpnJAd1vdHscNkL1IoImJ0ikDmDjispyiVKOWZHh+qV+jfF RiU7Mk7x01NHJuWnccTFA+15h1PTOLiu3SFgg+8FSsPF9hkDx+VCV8tcOMVV0FFfUH2C QwoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713287370; x=1713892170; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MHUy3BTU7vf8OKYXFB2qGMv/9WxQZ2YHgvNS8n+tlds=; b=KCpyVqv5Pp4K2p/eNNV0E2pdnRQko9dxU94u9cImJYTA9GySnvGjSccSbF6CXAuLdN +1r5BfekikihJv0wswL59p4Gxh8dct/PzyLQzK/LJ8NWrx2aWgo8si5KBUgiqGKEdA+a D/Si/TWIMI/bEbNuEuhbyJfFm65cwextC7wGDCetQF6s1INsjM6TphT3CC6+8zNpXekP zey6QAZxLLy6XVgMdEAJdjwUz52bKqmuEdWuGftIZRMC0Iqm0epGVeqNDENuQRRv/PGf Te7HzffFYvLyYcGMs75k3trsG6t8EEsr40VKvYwVbN8S89cFKxk4+GjNIJtrZFxtU1Fw v6xA== X-Forwarded-Encrypted: i=1; AJvYcCXFQIPYnwmHNMibAoSDVrUau/xYVuE2mfJ1sESa25X/fds8ZkQTR7L7NGw7pDNzBCDrB24JvEYcqeRksg3a9aauk6YoQUgfrDJtInf0bXkt93r+Yi69d1mXrQ3yL2Pi6dQTqHYxgMYp8umS3ejhPhgcAOdMkEh2soHA3xcAfmARjCHY X-Gm-Message-State: AOJu0YyRpV0IB/yFtP4dzPB0gZHuBjUpaCbyr+4jf0t9wo+TK34KHazg 2oHYAD280Kq32UcJSDgdc0VqPfmdhS3fbbKgpnv4U1MclbcRSehH X-Received: by 2002:a17:90b:4d89:b0:2a2:bd4b:764f with SMTP id oj9-20020a17090b4d8900b002a2bd4b764fmr12490553pjb.3.1713287369756; Tue, 16 Apr 2024 10:09:29 -0700 (PDT) Received: from localhost (dhcp-141-239-158-86.hawaiiantel.net. [141.239.158.86]) by smtp.gmail.com with ESMTPSA id s6-20020a17090a2f0600b00299101c1341sm10182573pjd.18.2024.04.16.10.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 10:09:29 -0700 (PDT) Sender: Tejun Heo Date: Tue, 16 Apr 2024 07:09:27 -1000 From: Tejun Heo To: 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)" Subject: Re: [PATCH RFC v2 5/6] blk-throttle: support to destroy throtl_data when blk-throttle is disabled Message-ID: References: <20240406080059.2248314-1-yukuai1@huaweicloud.com> <20240406080059.2248314-6-yukuai1@huaweicloud.com> <1bb85208-1224-77dc-f0b2-7b7a228ef70b@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1bb85208-1224-77dc-f0b2-7b7a228ef70b@huaweicloud.com> Hello, On Sat, Apr 13, 2024 at 10:06:00AM +0800, Yu Kuai wrote: > 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. Probably a better interface is for unloading to force blk-throtl to be deactivated rather than asking the user to nuke all configs. Thanks. -- tejun