Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp451868lqs; Thu, 13 Jun 2024 15:30:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQm/aZHl+/lzgW19Av6QU7i+G0zQE3FaKYz1abAlevjuhLDZeNZbuEHTStCv8aXZpjOXKKXk7mu9q1onmKG4aPGDE8BRAhEkw3yB9dLw== X-Google-Smtp-Source: AGHT+IEc6ihpPkDchWftdoXUna3iBUyIsTOkucA7E05MOHCMqVZWRWte6yd/s+yj2+jcdHcG3oWe X-Received: by 2002:a05:6870:6389:b0:24c:ac25:a107 with SMTP id 586e51a60fabf-25842b830d8mr1168677fac.57.1718317834543; Thu, 13 Jun 2024 15:30:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718317834; cv=pass; d=google.com; s=arc-20160816; b=yOWL8FvndsxwwJ5o7KcH/nkBsvaIFFI+JH2ccQSB/v5qnPNltcmr6R/94W46JJaUju 71FfFWQuTx5DFmydO94LpLsNQ2DqC5cB93j88kbixEho3Orqpwse0ZYeipEA1Aq6L68q JQQDZh/doXGEzxvI4qPVyDeG3v4Ol8aRz1rnJmnytZ3Jd/nsg4+TM0w6Jl3/0gxTrRCr 62bSlonVZMK2HRq0bE1VzzTZnszdoSR61rmgA55vcy39YNvnKX8yCf/zJRpyU12yuXCo J6lRw2yIvzS0g5SqvtngNrQMKQHkhKKB6Y+SzDVDZO9gJJNf+4M+5yI1nAgbsHjv7n1l h8ow== 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=l+VuzGuWCKxOWk0FlTi0998ap+SSuM6fC8aXjemEAi0=; fh=obZxn+3qAKZHBQhJ+nbjAjFhnROEQIjxDT675vRKrRc=; b=0yt2x3UpPUydHswJAYKDgU37JznnA+lLELTo2e2B3HfuA+HNVZ0FRJDdn0MtVw4QZq 8Nlsy5N4/WSPu4tKLeeukQ1iCqc0wGWnn9yzqIts6pN8kvsd+aeQDPjqDD+3W4mm5aAk CnyY6NLb0p0/akVVbO67ryGGifMigFEGgAlIGfCTyL83bTH+O2rueVhnVN7l90GRIBDh 46gMNVwOCRrKxwuvssDnciOy8QH9FzOo0+FOuhWiKZUUFextSwa/jnz56qPWOW0PAEKU AH7MsTi86BLXjY5FPXH4n6NxeuFaEKT/7/oybHeZ0dfdnpw0NR+D5SyhSGpNcW4xEtc9 q4+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=P8s0yAuL; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441f2fbace3si23492251cf.413.2024.06.13.15.30.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 15:30:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=P8s0yAuL; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214063-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 41D4E1C2241B for ; Thu, 13 Jun 2024 22:30:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6705114D2B9; Thu, 13 Jun 2024 22:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="P8s0yAuL" Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 3368214036A; Thu, 13 Jun 2024 22:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718317822; cv=none; b=agTtfY2pkzBnXtcGZM1fphqJdH5vAunPjEme6netxINUzMe12VQ4B78Iwl6x1H29N7bitdRSNfBR7UBKlJtutYFBvsJjq3xD6u9R5OnS5prgTpg6TGMhMyR5F9FpRyGvk9UhVe4t6U8k4uuP8PPdURSZipUT3odRb1qCteMRa+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718317822; c=relaxed/simple; bh=NKDalVH6Alkzs99xyNRZD+TbiSjmpgECUZoiufDwFWU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Knv8XxF++lrX7IeLi4FicFZJsB4lsOtagagIFLrDUjirymtHA8dVnFHsCMQH8eFIfTe15vrYh+oAqSoWojqO+GygK3BkntM1ADfvMUD5iTJycWsVHDZVsU9aLFri5Sj6OOHq6AUFP5W2cVeWePcloy7P7PeMND6U8zbRGpp78N8= 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=P8s0yAuL; arc=none smtp.client-ip=209.85.216.53 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-pj1-f53.google.com with SMTP id 98e67ed59e1d1-2c1def9b4b3so1325421a91.0; Thu, 13 Jun 2024 15:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718317820; x=1718922620; 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=l+VuzGuWCKxOWk0FlTi0998ap+SSuM6fC8aXjemEAi0=; b=P8s0yAuLfI4eBV+WdMh9NYM5zz9IkVMHe+qcrbnxfOCDGRAJg6hGpN+6YSFeqFx6ry rCmHTsi8HCGcP8vnSFVB091uqJKBKgAqGisW5pdZ0CR5HyVTqFTGeK/qgxJnEfySgqWU GoRD7n2jHm+a3nZ2ZTtlXPxR28dE2rLiaLVuG2bzUks7Z3wZe4f24n/3dI7MP69rWC3M 2WJKkkYuhtC7bIabx2tTZPtYu8StrAbkozxYS6sgxnKw+26nxT+Me/iNNKpWctkjvO+M ZHg7lMONfLfN7pxZb3XXQsrKk2ea9GHCyhk3VPImdIjNUwIxmWT4SS45+5qvxC4FRO4Q /nFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718317820; x=1718922620; 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=l+VuzGuWCKxOWk0FlTi0998ap+SSuM6fC8aXjemEAi0=; b=b/pmymz29lh8pIGjczQk88LUebNcVqUHWeL7foVdVBtpFx9yPNGhzg0gquX4UOQbm7 zk8dbQ2DgsA/nsqv91dixoUQYOOhtL3lafp2DZ8y37Mt2Ry8iFLSMOHU1Sa1zeSIg+4W jfu6hhBwNVBBWr/NH1mVQDl5dlH+W4u3teeBugdhNMqxggEQTxz1rikcNxI0/2ZGgq3d T9Q6Hgs8JtGX+qByM+3Gf/JsjHoTOlhkNQKrO06BIhqhOze9y5HYh0wUile/nUvuMnRu JzD0hy0IBYdvRF4czsgN6pxBvmLQGcqBVh1ud01P++ITmpC+QfUfCHJSX3JTGbwYA79j YnmQ== X-Forwarded-Encrypted: i=1; AJvYcCUyLDdUK6znwZc/OxyRZiWWpRr8f6ONDg46aoFGaah8185XW9gZkW6tNSOiMInkNs6N51X4bADjtSFk8PdQfj4Iwm9Fkvbin/TqzLnEBhIa8bL8015b/1emyV30BNuurZ+iXnUS71ib00ZmE0pbccAmVNQVCbcr/wYRwbI6Y0WxZQll X-Gm-Message-State: AOJu0YwXV6sBz3FnwloMpDmk5iVFKRe9xisVLgyrhSzphproxX8ApbW1 cRlTjKOk+ONcpQrJ2MTzp1R12Q6Jsf0KY5eZtyVqjHdiVTKDcHaj X-Received: by 2002:a17:90a:43c2:b0:2c4:bbd9:83af with SMTP id 98e67ed59e1d1-2c4db24bc6fmr1219174a91.19.1718317820120; Thu, 13 Jun 2024 15:30:20 -0700 (PDT) Received: from localhost (dhcp-141-239-159-203.hawaiiantel.net. [141.239.159.203]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c4a769bc48sm4612029a91.38.2024.06.13.15.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 15:30:19 -0700 (PDT) Sender: Tejun Heo Date: Thu, 13 Jun 2024 12:30:18 -1000 From: Tejun Heo To: Yu Kuai Cc: josef@toxicpanda.com, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: Re: [PATCH -next 1/2] blk-throttle: factor out a helper to get throtl_slice from tg Message-ID: References: <20240513120848.2828797-1-yukuai1@huaweicloud.com> <20240513120848.2828797-2-yukuai1@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: <20240513120848.2828797-2-yukuai1@huaweicloud.com> Sorry about the delay. On Mon, May 13, 2024 at 08:08:47PM +0800, Yu Kuai wrote: > From: Yu Kuai > > There are no functional changes, prepare to use bigger slice in the case > that iops limit is quite low in the next patch. > > Signed-off-by: Yu Kuai Acked-by: Tejun Heo Thanks. -- tejun