Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3479375rwa; Tue, 23 Aug 2022 05:33:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR6BDHRLh1Mfo7Rqmg+Lod7FxL4xFfQqrpE5DmpZVxN79Vo9HgzjuhgUXLz//7iVOJFhInyA X-Received: by 2002:aa7:87cf:0:b0:536:f775:b9ab with SMTP id i15-20020aa787cf000000b00536f775b9abmr3127090pfo.30.1661258006450; Tue, 23 Aug 2022 05:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661258006; cv=none; d=google.com; s=arc-20160816; b=JUSQrOSjZ9ku9NO4wu5w75CfiV16QX2FFtSHgMXvvFk4AY+v+vSYEIzPnKbWLeLHxM Pd/1Z4wZj+GCR+9I0VdCF0XXgRqIjkwfU5FZi1xqUsp0uI4tUCj5TGo4FVFzdLZGqO8m 1zPLhksjqmcjrEJ1wexW6np5cNf1aGiFi/gFlZaNpCKNzmB81JB6bQ8KM63wdZvpbPLK tGoJgQH1lCWKcedDq3Vet+DNAV8a8cECAtU5clA952O+kI13H2TvUe6pEdlfxtumO6oO aeAPQhMFMxOhY5riqLi7hqADS/RHCIKvmJdt2881d/Vab3Y6VW1BsdeJGtgVz1aQAOXi bw4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yRu5XT+5vnVozy2B9jrgC9j7gnP78QLLHJ2olzlomGw=; b=AIyebZt5h9FsMBNRuPWGTTgiPk8SnYbP4F4+/HVXfwe1YCitstLbPE8VcpxrLcYHqZ SK8fVD7Effd0Iukkkr5iixlHwvEeE8BsgHvzU3qo+52grniRD3A/natAkpq2Qu/lSfwH H06DlB1P0uznhRxRBxO7jEZleO9kHrxS80Ebf2Q2A9KKpjlK/yA+OWpwBjBeWrhXG0L9 /d+Q1gqlPY1yhWmCz3V9pu6E71j+MaHbuHfGuUvXC7M1zUkxQVHEYu1AQRu3eI8L6m29 eRfi2IzDJKawGnRbyP867Syi2/bl22+G/HE54EifhlBLe3mOpkpdlU0dC0lGnc5kThnT cAzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=NIFqyjZz; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020a632b02000000b0042a77ec2435si8897552pgr.287.2022.08.23.05.32.51; Tue, 23 Aug 2022 05:33:26 -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=@suse.com header.s=susede1 header.b=NIFqyjZz; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359577AbiHWMVz (ORCPT + 99 others); Tue, 23 Aug 2022 08:21:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359737AbiHWMQS (ORCPT ); Tue, 23 Aug 2022 08:16:18 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E3519926D; Tue, 23 Aug 2022 02:41:48 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C3A5833B4A; Tue, 23 Aug 2022 09:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1661247704; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yRu5XT+5vnVozy2B9jrgC9j7gnP78QLLHJ2olzlomGw=; b=NIFqyjZzrKwd1GfRkh8IWWX10l8YJnEFlnc7qU058Mtuw8PxMdfm/fmgYmPjvcNkYF5WiQ /MJuoK1BuB3qpyiSQPcv4eLdWCy2MwvER9mc5Uy5RsveC1YlPxfJtaP7atIzPIxMJpFgWY fOAwSXCJ5pTkKtr++8a6uZW6KGmogxI= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8A30913AB7; Tue, 23 Aug 2022 09:41:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id IAuxINigBGOUeQAAMHmgww (envelope-from ); Tue, 23 Aug 2022 09:41:44 +0000 Date: Tue, 23 Aug 2022 11:41:43 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Yu Kuai Cc: axboe@kernel.dk, tj@kernel.org, ming.lei@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com Subject: Re: [PATCH v8 4/4] blk-throttle: fix io hung due to configuration updates Message-ID: <20220823094143.GA1729@blackbody.suse.cz> References: <20220823033130.874230-1-yukuai1@huaweicloud.com> <20220823033130.874230-5-yukuai1@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220823033130.874230-5-yukuai1@huaweicloud.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hello. On Tue, Aug 23, 2022 at 11:31:30AM +0800, Yu Kuai wrote: > Signed-off-by: Yu Kuai > --- > block/blk-throttle.c | 58 +++++++++++++++++++++++++++++++++++++++----- > block/blk-throttle.h | 9 +++++++ > 2 files changed, 61 insertions(+), 6 deletions(-) I see v8 is just naming+comments [1] change, calculations remain, so it can have Reviewed-by: Michal Koutn? [1] I assume dropping of the overflow/signedness is intentional after previous debate.