Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1472287iog; Sat, 25 Jun 2022 10:11:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s20n894rl6THXPziFIXUL2rQVZwIjTkOfcrJbgUyvJdTokgW+CQD0areneMH6eg7dbvDpm X-Received: by 2002:a17:902:b689:b0:167:8b69:d1a7 with SMTP id c9-20020a170902b68900b001678b69d1a7mr5154533pls.156.1656177068403; Sat, 25 Jun 2022 10:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656177068; cv=none; d=google.com; s=arc-20160816; b=tGCi+PeQqXYpnjbMgQalgXLFmWkuYC2jIpeRkT7amWfSWmTLzRUsHgSOxRNlNBdziW tCmlVZW7Cx4bUbz1504H51GgNaCmjP8TwYS/5sGbNEtcMwEEkXYAVyX3eR2XtXtmPU4H tcs+f7jrL4r/zcSSJGUKEs48A25MV8we9Gt2p18ALc9eTmyb0wnxtQJy2uz7W6WryDS6 pj5LNIcWQogvAFGBUrEdfDzshRcBWO8+U8E4+BvdaIOZ+Qc+W4E3YtauPz8XOLqinkuI Y+usYrLMXHaSOvF6l7cEfBSP9k4rysl7W2lo+QUPIw9ImdxsEOsL3VSG5lv2hM8Rt1ym DpbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CiiTdw5nwmdQxjSzvtjOG6uYyrass8pWwqawj8avJ5Y=; b=dG029w1rR6zl+GIFqIzWGvpr8yn9mV6gs8vAw5G3DxRxW76J2C08qx/zeDyO8ZiDHH 9KXcpTVJU8FXz+bX7JbZXYSrjsAm/876Y9BXpLo0tF5P8l5CEUOQV9hWJ5h22AtGooyj qm9Xx2BMBvgdYED2e0CdLqWLe/JQGPYKVUZXszgV4PAdNlZUrLQrwcqJxEUE5QTV4eUm 0ssmtsyjqyw8pSib2Y2Ef7cc3SEijbAW5eFoa90CERZawoHpHtHTWsqHvyDcL2OXupEU VoagmkBXdL3z1gIsJUMt2UCSNoB8xjEgnrlysIyZlflY/9HwuwI1dUWHIV8Iiyh1kZ3x DYLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=ZdlS1l2K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a170902d48a00b0016a3102f8ecsi8964311plg.440.2022.06.25.10.10.54; Sat, 25 Jun 2022 10:11:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=ZdlS1l2K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233160AbiFYQl2 (ORCPT + 99 others); Sat, 25 Jun 2022 12:41:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232618AbiFYQl1 (ORCPT ); Sat, 25 Jun 2022 12:41:27 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14F1E140DE for ; Sat, 25 Jun 2022 09:41:26 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id 136so90983pfy.10 for ; Sat, 25 Jun 2022 09:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=CiiTdw5nwmdQxjSzvtjOG6uYyrass8pWwqawj8avJ5Y=; b=ZdlS1l2K0yddb8XT+8VtvNpjN/CVImDLEORZgY0s7okUSI8qLcWyCyaDjOJJDeX6MR x9/ddt1ZSDs5dOI5/CTqFNN9tdyhRRqsHxq/Adk41okptoPxOTvPCBdEDz4viCdXmOFs O7yPMl00IseDazDTQszNOg232uVglii7zgJPHi9Sp+zWDwvBbCARyNINUZiap/yzOu3o Nv9yBqvGpew70x+p1YWq5qBXreAi1u2qWT642bK3rucMDI5nVjuHZZPSu2F5suQ1i/8N z8n0zlESYixxHA2a/W4PHTkLBiHoyIOk9SL5dBOzGj6InF7BAulw4JAvmCr3kxJELEus iATg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=CiiTdw5nwmdQxjSzvtjOG6uYyrass8pWwqawj8avJ5Y=; b=2nsNjvXop0Y5DYIc5sF2siG0P/LRPq5A2qcIGdpQFeq0UFAN37X+uJY+OFk6r2P4fT nAMzGBjPcovdpdsdtbuj2EM/03bZd5J6A1yN/TvIYCLRkDrLmgceuIwcJ3S9lw6F13kJ 2dto13yXCbmBNn3Be6MzDSrYxf8GyDVIOaoDpM9Urye2e3BLi85JPgEg++YV0qRLcU7E XhJnptfn9slhjwfQbASpv1U+HUpIEc3NSzjJlWWUETD8DEGoSNpnTCTpY1i3tu034vHd UQAsphP1gK5oW6g2yK0tUY24sPr0o0e/GrAxhr2bKzVSoPrQid2B4VPlLcp9bov+mltP Wcug== X-Gm-Message-State: AJIora/vYwtOYtQMspR3lIKJHgpHbNIqrZ+fN2U5d17Nnz/9K6747UlV FTFPbpAUNn3Mpixq912hhNDiJQ== X-Received: by 2002:a63:6c42:0:b0:3fe:465:7a71 with SMTP id h63-20020a636c42000000b003fe04657a71mr4186781pgc.101.1656175285444; Sat, 25 Jun 2022 09:41:25 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id be19-20020a056a001f1300b005254c71df0esm3803232pfb.86.2022.06.25.09.41.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 Jun 2022 09:41:24 -0700 (PDT) Message-ID: <7e14a11b-225e-13c4-35ff-762eafd20b70@kernel.dk> Date: Sat, 25 Jun 2022 10:41:23 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH -next v5 4/8] blk-throttle: fix io hung due to config updates Content-Language: en-US To: Yu Kuai , =?UTF-8?Q?Michal_Koutn=c3=bd?= , tj@kernel.org Cc: ming.lei@redhat.com, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com References: <20220528064330.3471000-1-yukuai3@huawei.com> <20220528064330.3471000-5-yukuai3@huawei.com> <20220622172621.GA28246@blackbody.suse.cz> <20220623162620.GB16004@blackbody.suse.cz> <75b3cdcc-1aa3-7259-4900-f09a2a081716@huawei.com> From: Jens Axboe In-Reply-To: <75b3cdcc-1aa3-7259-4900-f09a2a081716@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On 6/25/22 2:36 AM, Yu Kuai wrote: > ? 2022/06/24 0:26, Michal Koutn? ??: >> On Thu, Jun 23, 2022 at 08:27:11PM +0800, Yu Kuai wrote: >>>> Here we may allow to dispatch a bio above current slice's >>>> calculate_bytes_allowed() if bytes_skipped is already >0. >>> >>> Hi, I don't expect that to happen. For example, if a bio is still >>> throttled, then old slice is keeped with proper 'bytes_skipped', >>> then new wait time is caculated based on (bio_size - bytes_skipped). >>> >>> After the bio is dispatched(I assum that other bios can't preempt), >> >> With this assumptions it adds up as you write. I believe we're in >> agreement. >> >> It's the same assumption I made below (FIFO everywhere, i.e. no >> reordering). So the discussed difference shouldn't really be negative >> (and if the assumption didn't hold, so the modular arithmetic yields >> corerct bytes_skipped value). > Yes, nice that we're in aggreement. > > I'll wait to see if Tejun has any suggestions. I flushed more emails from spam again. Please stop using the buggy huawei address until this gets resolved, your patches are getting lost left and right and I don't have time to go hunting for emails. -- Jens Axboe