Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2775849rdg; Mon, 16 Oct 2023 14:48:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdmxA3Tvi0PtwfGuDF4bu9xJt9LTlk7ZmZFWuOgJt4oOM+StDIUEZ0cuuaZacJ8+vvbx2L X-Received: by 2002:a05:6808:f03:b0:3a3:ed41:5ab with SMTP id m3-20020a0568080f0300b003a3ed4105abmr778367oiw.9.1697492927180; Mon, 16 Oct 2023 14:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697492927; cv=none; d=google.com; s=arc-20160816; b=rUBRvV62Ns/YfeRc3eYjFntLC/mwxB3bV0rMZtFzyPgTrTWNt5tWqTaC658t8OC8Hs Xw67oI0gldB34rM7HbfsXqgit7IvXqwtemkpIscTM0zml/TR+/q2G5l1ZZ8BkGqyP6y6 vmTTVhyt+y4wz77rcbXQvdUIOHut+okymAQIJ0pRcjM7daADURoFAf2CvzFT2q1RJsXM 6zB95I+QOyKvMlrWm1kdoBeUaLHGO+CnWOgkhdxQy0QD38mzRdmOHaNFOdu3cbHS2Abv BRoE7p9iT3iJ3KxAiO/qqCvpn5G1WepYm93Eahw7NlMeC8fwWIxzetOPgmHGBrJOFaIn eIYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=S4RLYkfi4mvrpHxc/+8MB/+4xVbQh6OwKrI5KwV9TPg=; fh=FoUwHzaSlAr3AVEE3V1tQGUSTVIGp395qvUwYvyrmp0=; b=d/Vu8tXKG5hjXFfqjFzvETNv2K+Dbd2oE1XyH5GZhcOZdAJDH1rAxi2ahqgwfkSg/Q aVSZZ7iXN0R2m9LXYDDGvG349hHyDOPUKLFgNPDvPBZSD75XywU9DLCfqzBKTZ2jUnqv Jum5RKXYA90tXVb/sRJ2EB4qfo3OEUZkD5Iqbz02MvEM02o9giM/cO5IQy4A84+MVxn2 KVYaua3MROazcpb4HollT09azb9NWstfyRZqNN7yimSMceT7urgYk+Uq1uvKrdPorow/ K2fvQZA/h4Cd3K8koFjVTeTtjRcAPLayDtukv2MzzS5Qcs34UxrIzg7msDCX/+tPv+qz crGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TWcj9kiX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t185-20020a6381c2000000b005adec857fd3si204104pgd.523.2023.10.16.14.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 14:48:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TWcj9kiX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A2CCE8028847; Mon, 16 Oct 2023 14:48:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234009AbjJPVsl (ORCPT + 99 others); Mon, 16 Oct 2023 17:48:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233605AbjJPVsj (ORCPT ); Mon, 16 Oct 2023 17:48:39 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F744AC for ; Mon, 16 Oct 2023 14:48:37 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-41b813f0a29so38151cf.0 for ; Mon, 16 Oct 2023 14:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697492916; x=1698097716; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=S4RLYkfi4mvrpHxc/+8MB/+4xVbQh6OwKrI5KwV9TPg=; b=TWcj9kiXMFheNBXHd5Jqvb8cYz/dlwtGjOw62al0o9TB7GqT2VsWTTP5gpu6whKPv9 w/brUvMDO1VH/rGsR2l2a+W3ClfgOSVXRmBPX4DVEs7ix1HfvpBk8fVVBFsiZVNbWtuq 6gG63JFJCRrC6cMd5YdpRaNMEuZeRBtruAbwXOpEnkXB4xfnmftxfPnoyKE30LIIdGPc gjsze9NYF0c7G0foEZbmPuTA+JI6PsFqM6b3+4zWCeZLhlaEfrV16qx9GgHekvfgT3X5 es1cxerjJyChHov1TPUzWOYAmb2xIaTT8zIcftUcuqKj0YG7a5eW1O6qWuT+nom5/fXC 74gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697492916; x=1698097716; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S4RLYkfi4mvrpHxc/+8MB/+4xVbQh6OwKrI5KwV9TPg=; b=BA9Zj11pfI3KOnLwu8nwResoEVZveC36cURgSg95WC5B/RTlhhJClcUlIOz9jLD2df hjj1koO85rhCvYI6+VmBj/gIRnVIvI5H+PhWhXJElwRl+PsX1ED8whECrfwdsx74kiks YYZ5TzRT61eroprEWJdPDSkxCEFOaUqUOME9dJN4B8fF2SRTD8KSi2mB3YokPoJDUw+h 0/xuyO1FtVyy9MM2cW3ZbAU9Wv175ekT2Fv3SgpUFN+ZPGmyN5dxTw1nYMrLkgQjwxGX iUutYSuF0GHhIJZxDknWvUS2GAx97I8ePpD7X8sYfx4YEaeuMV36D75WHEwkUGAhwTED kjWw== X-Gm-Message-State: AOJu0Ywrk2mVJ/I7EsYKDI8QBTqNp3YbeGWpIdNp0qqoO9cUsplxhjZ4 VhBjfnptG7T8MxDUdFWhVD33VFA8RUsyVhzbkOSweQ== X-Received: by 2002:a05:622a:478e:b0:418:1878:5b8c with SMTP id do14-20020a05622a478e00b0041818785b8cmr24567qtb.25.1697492916193; Mon, 16 Oct 2023 14:48:36 -0700 (PDT) MIME-Version: 1.0 References: <20230928015858.1809934-1-linan666@huaweicloud.com> <4ace01e8-6815-29d0-70ce-4632818ca701@huaweicloud.com> <20231005162417.GA32420@redhat.com> <0a8f34aa-ced9-e613-3e5f-b5e53a3ef3d9@huaweicloud.com> <20231007151607.GA24726@redhat.com> <21843836-7265-f903-a7d5-e77b07dd5a71@huaweicloud.com> <20231008113602.GB24726@redhat.com> In-Reply-To: From: Khazhy Kumykov Date: Mon, 16 Oct 2023 14:48:22 -0700 Message-ID: Subject: Re: [PATCH] blk-throttle: Calculate allowed value only when the throttle is enabled To: Yu Kuai Cc: Oleg Nesterov , Li Nan , tj@kernel.org, josef@toxicpanda.com, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, houtao1@huawei.com, yangerkun@huawei.com, "yukuai (C)" Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000004e42ba0607dc5ed5" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 14:48:45 -0700 (PDT) --0000000000004e42ba0607dc5ed5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 16, 2023 at 1:06=E2=80=AFPM Khazhy Kumykov wrote: > > I mostly just want us to pick /something/, since 6.6-rc and the LTSs > with the patch in question are busted currently. :) > And just to make it explicit: I believe Kaui's proposal is correct. Khazhy --0000000000004e42ba0607dc5ed5 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPmwYJKoZIhvcNAQcCoIIPjDCCD4gCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggz1MIIEtjCCA56gAwIBAgIQeAMYYHb81ngUVR0WyMTzqzANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA3MjgwMDAwMDBaFw0yOTAzMTgwMDAwMDBaMFQxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSowKAYDVQQDEyFHbG9iYWxTaWduIEF0bGFz IFIzIFNNSU1FIENBIDIwMjAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvLe9xP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