Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2001713lqo; Mon, 13 May 2024 05:19:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2WrI2A3apntr1wB8GB7JMc3+zLEoU2qnYXVM9UFacAntJ7D3Hdz3q9RlVSAnvFaVUvOkx5LdqkaI1z1VaMeq+ktIk+39l0EC3WUVtCQ== X-Google-Smtp-Source: AGHT+IEhq10gDt34aqwEJC9Yw9vbW9eOkICW2PqApB/PUvzKb0GksRccG0r66h8Qovgey5KskJPW X-Received: by 2002:a05:6122:922:b0:4d3:39c3:717c with SMTP id 71dfb90a1353d-4df88286086mr6971024e0c.1.1715602778889; Mon, 13 May 2024 05:19:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715602778; cv=pass; d=google.com; s=arc-20160816; b=xnbNpRQDCJ3oshopBeEPBkr34dK5CXcv3OuhFOR1MjWffVHLr0DvFzBqvgPS1OQvdE VLCWm/2ibXrrVzBkk2VyDulc/saW8Pald23nLA+a3iMRqE3aXudbUb4dhFEMsMqsbktO 1zvSalVRGdG3s0YphHLg/Ucj0ysL6I9fiIwVQLDrskOTV69cwWuktxajGpXer7X0MqVX MqGT9wK3FAgPgvTYtl6Nju0xHZtZENE6pgTHIDxH2AFXHSPOfSr+20+sLqAcH0IRx3kX /KORXe2Yuer8emrGP0qtV48JTTsNuXqdS2OliV3sdBqMILNEdUkeB/1x+UYjgeABZYg6 ZY6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=D4Z8dPiz4Xvh8NqUcqGbLAFydKGUcKCJ59AL6chPSYU=; fh=+ppq1SGLJHfYcbPAQc+fqXTu18TWPZc22AXlt9s3//Q=; b=yXmpkI6XRxTU7njQGdWPc2nmnybYoPCDnyYt5JeAL/3+corzeg2JhvNRRrIjplKWvg 4kMIbH1/RYMEnFLWGTMOJj1BovL1JkzyEPQnwwSAHzl8JnGEHaqaiaA75DD19RjUxeV0 weT2NKlhrygV5fIudQz13dLwUgtJVdJp7Om83zBCoC8aPitzOYC86mqFQ0YfeLQ9XHCJ u1hJ+xdMhlUyKpGUPH2qPOGAVt0Pk2Z8uSYCXNVlpb9evOrIfIcFpcLMxoIu7+oaSStq 1J6U20HIK15FTSs6Bm0gxI8I11rDR5cwVU9QQ/hHDaPr4Wvh8cuxvXXTYcXMLt02BzEI XxPw==; 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-177547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177547-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 d75a77b69052e-43df54a1ef0si96305231cf.129.2024.05.13.05.19.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 05:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177547-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-177547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177547-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 8853D1C21D05 for ; Mon, 13 May 2024 12:19:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5833E14F9F1; Mon, 13 May 2024 12:19:20 +0000 (UTC) Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) (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 1595E14EC6A; Mon, 13 May 2024 12:19:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715602759; cv=none; b=aG/GJawicsFo6JgJjezRX7s331DC7dEl5toFahOvEeU8FGxS6/lwtATcxsHN6Gu8zUi7Uwb9Yc5k1TponoNv54hTl8S/mkHm+/D0w/pMKtPk6AV1FfmiYRQm5JU06dJjIArxt/j0Kk48lmeitBc/2Z6qFMeWzVb274I5Y6797Ok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715602759; c=relaxed/simple; bh=lkPugVOypGhAP7Q3SGXFpjeqcaDfBZ/dF03MDdJXcP4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Xjz4XwiEzRoC2to5pkKG43Um+DMfCgGGpn109kqWi1MXqF5o1CtWYcV9/ywzCu2cJehoP9WIieDzX/VnBnXGkDCrv8vTNi/gJVSmoktNQQBFvYDqS864s2RPAQHFMDWrtGBX8Lqrt5xqU2z1l/tSjWXs8S34/9Gv3n+uZkuYA8A= 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.51 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 dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4VdJSR0dcyz4f3kkP; Mon, 13 May 2024 20:19:03 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 8F0D31A016E; Mon, 13 May 2024 20:19:08 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP1 (Coremail) with SMTP id cCh0CgAn9g46BUJm8iY0Mg--.57325S4; Mon, 13 May 2024 20:19:08 +0800 (CST) From: Yu Kuai To: tj@kernel.org, josef@toxicpanda.com, axboe@kernel.dk Cc: cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yukuai1@huaweicloud.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: [PATCH -next 0/2] blk-throttle: fix lower control under super low iops limit Date: Mon, 13 May 2024 20:08:46 +0800 Message-Id: <20240513120848.2828797-1-yukuai1@huaweicloud.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgAn9g46BUJm8iY0Mg--.57325S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY77AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2js IEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE 5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeV CFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1l FIxGxcIEc7CjxVA2Y2ka0xkIwI1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr 0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY 17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcV C0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF 0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2Kf nxnUUI43ZEXa7VUbXdbUUUUUU== X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ From: Yu Kuai Yu Kuai (2): blk-throttle: factor out a helper to get throtl_slice from tg blk-throttle: fix lower control under super low iops limit block/blk-throttle.c | 52 ++++++++++++++++++++++++++++++++------------ block/blk-throttle.h | 6 +++++ 2 files changed, 44 insertions(+), 14 deletions(-) -- 2.39.2