Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1424369lqb; Thu, 30 May 2024 09:41:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5xEV6e2eiCnO++YPHvljZmw6GDw9XYeEn7mTA04lLHhXH01wBeWOW8NCRNSvf5F3USAuR6n/jYlcilBFKL++DCAjt+4k8jhr68s9JdQ== X-Google-Smtp-Source: AGHT+IGwrLx9kHCsf6nFseTvASfBGMDQWWY0rPN42MIhYmDv8tVwojN1FEYIWzvC0IIwWBuwgWwK X-Received: by 2002:a17:906:c412:b0:a5a:15f6:157f with SMTP id a640c23a62f3a-a65e8d37064mr151718166b.14.1717087309432; Thu, 30 May 2024 09:41:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717087309; cv=pass; d=google.com; s=arc-20160816; b=Jgxt3QeKwktAZo7JI2tFeSFmp6uyHeSB+8TlX4zjwbrJZ3/iXS4arPOFFi6w37yrjh G2ByG3ETRWDdyNCuEC3PmYYhQXfldDx06y3trVhoTM9TSqZ9EEGuRS5kTrEcJ9ZSW15y +Ib4LRzjoqTKxhqKF0LCCkXuc4PtQB6GNAYGJg/aRdP/BsagbsKcGue690o5thqVIxxW DE317VnynHsyKYTuhK0CiaeHjao9SI114bSAyOcGbfhb0DI2Wzy9eB5nEMRA06sGaIPf vrHNk3I7bJIAiPD4c+yyWLTZKViC2qCZ18cOafEGwsB43nElD+p5bXyNQ8UvwKb/odLB 1/MA== 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=G7FTH0c3tG+Ht3s1Gg8KhD3HVk6ceCg/0HWZJM2Xej0=; fh=Na/Sd7hrZYKkDxAgGfmQzEMazJFGjbTqzM4VmhBpIfQ=; b=RXkcWlbmYThnQVkD+cFeJ/cbNDR99yP1GTCIgPCYebK0rrNuQu6QHUSPr70eB/DwQ6 b3PtHsbQbo+LJZeVZ60z5GjLZnT1X3bfi3+evD2iJF1mMZ4MMRzSX1xPmJkjfKrb4NLx YYcjA1ATYf9X5UrQgLDtA75yahCNhHDuBFFxCHAhVVmpH++a8ojiLNap5wN1OILJscBR azB6IaJvbWsnx3s3T34IZiuS3ylNzLNudvIUo1Ir4xBh8QRdMBkDWyjQxc1YfOLW3c4Z 93RwGIhJVn+3wGPtoSMB8WUITtOvidIJZZKDEM+7PH1V0H88jGaIqwIODr3JlWilCvdD QzHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="i1/gpBVA"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-195665-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195665-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc41e39si818277466b.438.2024.05.30.09.41.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 09:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195665-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="i1/gpBVA"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-195665-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195665-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2B3D71F238C5 for ; Thu, 30 May 2024 16:41:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48BDF2D05D; Thu, 30 May 2024 16:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i1/gpBVA" Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 296E921350; Thu, 30 May 2024 16:41:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717087298; cv=none; b=WQILxH+2wJAMz6NEELFSpsokFeLuTpd3mymYg+8ZoAJTucjIOAjgGSawo8DE2Myb/qwTeNcwu28hO2zsz7OKDITGrHgG/NRuHlI0r7shNHXxhW2FUDzbtRhfjtbk4wcbuh9+3fEY69tIMy1VoXlvZd7VXTBzQdcVNCaRmKfcpj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717087298; c=relaxed/simple; bh=h+sgsRXRgywtulA6yP05p7p5SlkPSUmpREB4pxqGy0M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aTzEYScx9zbsdmfoez7m+QHJKEEv0bD5m67qXbz2opqzc7N7gtq/7qRNsjUP707i58RGGOWydF+Qp0lcRAoUNOfWSJgmurm0R9vG8t6cRA9lsfXmndql7ma3CUB3p2gZ+P0fp/GbwLrQs78gT1waw2Q/ps1pZY3tvbeNYmLF0/k= 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=i1/gpBVA; arc=none smtp.client-ip=209.85.210.179 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-pf1-f179.google.com with SMTP id d2e1a72fcca58-70223dffaf6so1056058b3a.1; Thu, 30 May 2024 09:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717087296; x=1717692096; 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=G7FTH0c3tG+Ht3s1Gg8KhD3HVk6ceCg/0HWZJM2Xej0=; b=i1/gpBVAk/HuKoYSgQg/i8TlOwcN5vwamPBLwxpzoQadKdudKaHsLUhWcb1tuoNUWV 10KZ/dtOBlldYut0AGMdHPju3Nea0HlUnlQkJbZsKPzxopoSSF8RCo3gvJZzV52BpI5Y 2b/sy/7IHJWmE0KjQDj5T9xecWIYdKYrcAvWs2rQcI4HCEIOXDKRQan7hS+uryMu2XIa WK5q4UjSjbl9lcs4RFc+t11HoMxE5SEXDtcfJHBsgh7Ki/3r1Pwn5o4jmR0vAr2oKq93 whCUCYceQHhgeEaL+gczhcvSgg7ul9VKDVRxQCnr064Bcv0cahFIyijFo9Txiw28Cwks X2Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717087296; x=1717692096; 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=G7FTH0c3tG+Ht3s1Gg8KhD3HVk6ceCg/0HWZJM2Xej0=; b=kBK48p8bBbJ98f16IhHxHdUpWU827yQmrwnETGCgo1wDrgwIhrxYubmr0DTCu4JRjs I0sstCXkW4cXx5lfmABoqiJbl+RNeW7WH5gH4ZE+ozwIFvVUhcqG0bLJY4Q7TQS8g2XD 7sikeuhEjZsTMxf1SBzmM53/Veta9RRxDsRlY3mZMyafx5LyJtA1qdQOFvbTjhOwVTkd iSEyc8PojIl4oOwC5+j8CR6J75A1D0NzW4lVqMB8bl5VYR6xMQObuYoHGBkgks4SHQ8d V+52jQRd7I69sEiCrYb2qASK8CVJdpUhKwzi5G0cVEYXg/jTVkcsi1S5pBEYRp9jQ3O2 R3rw== X-Forwarded-Encrypted: i=1; AJvYcCVKaHwoMwl/hONt5pwiRNpeCXSjsX5FcSHave3DEhQzu2fRZo0HAcicrkWj3G0jWDmDY5+WsKkjlBIO3NvSf8/irmQ6Oybw3Qz105rCszY6T8R23gr81CI3GUWChXYoCH5odceZCKPoe0Yaxf+Gpi62mH+0qG9FcRw61CC1eV6AeHtZ X-Gm-Message-State: AOJu0YxklA1DyZu9/9joH17ff4Sc9vLYL/Ocpk0tVkQoneBwx+m+0RPj d6eMjuQSmVHlAaE2bzmMQxzlpb8CTH4xDeoqwD0Gtl3qthTSng+7AEkBzg== X-Received: by 2002:a05:6a00:2d81:b0:702:3b69:9e6e with SMTP id d2e1a72fcca58-7023b6a0c7cmr1352847b3a.14.1717087296127; Thu, 30 May 2024 09:41:36 -0700 (PDT) Received: from localhost (dhcp-141-239-159-203.hawaiiantel.net. [141.239.159.203]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7022a5c2cc8sm2100730b3a.108.2024.05.30.09.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 09:41:35 -0700 (PDT) Sender: Tejun Heo Date: Thu, 30 May 2024 06:41:34 -1000 From: Tejun Heo To: Waiman Long Cc: Jens Axboe , Josef Bacik , cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Schatzberg , Ming Lei , Justin Forbes Subject: Re: [PATCH] blk-throttle: Fix incorrect display of io.max Message-ID: References: <20240530134547.970075-1-longman@redhat.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: <20240530134547.970075-1-longman@redhat.com> On Thu, May 30, 2024 at 09:45:47AM -0400, Waiman Long wrote: > Commit bf20ab538c81 ("blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW") > attempts to revert the code change introduced by commit cd5ab1b0fcb4 > ("blk-throttle: add .low interface"). However, it leaves behind the > bps_conf[] and iops_conf[] fields in the throtl_grp structure which > aren't set anywhere in the new blk-throttle.c code but are still being > used by tg_prfill_limit() to display the limits in io.max. Now io.max > always displays the following values if a block queue is used: > > : rbps=0 wbps=0 riops=0 wiops=0 > > Fix this problem by removing bps_conf[] and iops_conf[] and use bps[] > and iops[] instead to complete the revert. > > Fixes: bf20ab538c81 ("blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW") > Reported-by: Justin Forbes > Closes: https://github.com/containers/podman/issues/22701#issuecomment-2120627789 > Signed-off-by: Waiman Long Acked-by: Tejun Heo Thanks. -- tejun