Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp22429lqo; Wed, 15 May 2024 19:21:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU30Q2YGUF4w1K9FvTV9VHtYFAkTy8OR825y1BmjTZhMII7YrSg1lg89bl8YEcgTGuTTGNbFKRVe6HtS5EEhqsa56So6knTMmtc81GQmg== X-Google-Smtp-Source: AGHT+IEfxUMnnSpCoHA8poM4L03tNM9Zq+FEtQkow7Izcj/smzIdAxtUq1MP7DMzw3Uw6QZ21Wpm X-Received: by 2002:a17:906:3197:b0:a59:c209:3e33 with SMTP id a640c23a62f3a-a5a2d53ad6cmr1153780566b.15.1715826089086; Wed, 15 May 2024 19:21:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715826087; cv=pass; d=google.com; s=arc-20160816; b=aEOQkqf31mbEdr/pQLhpZZM/ljWwrajcbtFxHsc1q4uioHnUjQsmU82MVeSH4oei33 6cE62CW+vOOeLoIEnuX/ip0+RNo1DxLNizRpFiH4TbjW41n+uiOq0C3AD0KyT4zKKqOo FnCquPkCXj6qkrJEwmBI1ByOvbOpXGtm6VSrQj2jQZrWUsSppkRhZGjagVMQjU7+KLjP c5eYnSjLKe0rqwO6ZkkgAQRsjAcuZj0KN93dBY3NgaShxTPMxBXzTqmmApAYK0Q3Grb5 +1b/8JLzZRIM4vqhR+HMSHbx9pvUhmJv2wVpuB3SFSFkcWOKQY0r3E1eDYJm/ZvlZqhL w3YQ== 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:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=aXSD811bYryV9ebSAntCLnwE4mJzzmb6s7DeS7yDo6M=; fh=0FdoWs7mxPm5mx4t3byiYYsrXZ5tP5YwceGJVtC4/XE=; b=hRNnfVlCqQHLxJxf1E2Oy+50AaiQm6nJ4pxk6C0NXLM2fxDNAnSWWHQ9DL32JQV+QL GZeeBm5tMqtIgO/7m6F+kirM55aYd0s3ERTv44zWjzoUt+fgYXQ6Pt6GEcchhGTSjMrS BNYkhMwTZ9DoeTomTPIRPE/Wxgh6Ngjgjeo18vL2f+T6dHR4okpdbMnHqx2t1+s4ESOD 7RPzMnCxO94M0RN4EozsAFjL0A2Wvxrcrgor4sf8WknztjGl/IbhUlY6OuyeNu4HxY+G LmDuGk/g12xpFgUjeAPW5m9sddMbTvyFr/NkCb0fegMJ7FhzWcaQdkFYDG2TPnAaS0Dh OZwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=CUcvsj5s; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-180566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180566-linux.lists.archive=gmail.com@vger.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-a5a17be689bsi860479166b.745.2024.05.15.19.21.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 19:21:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180566-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=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=CUcvsj5s; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-180566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180566-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 359A01F215C6 for ; Thu, 16 May 2024 02:21:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD99B443D; Thu, 16 May 2024 02:21:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="CUcvsj5s" Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 8E9EC139F for ; Thu, 16 May 2024 02:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715826077; cv=none; b=WOlU7dkWwlCFoYSMQ2n0HFd4sCyIyn3jQzdrZ5L4tGMm+tm5ejvfTf+ahpR4F/dDMaKvWKsq8s7uPsAtqVWVUc0vR3HegP/KV7ssD1MbFPsiipCE6wo3+fF8wsLkLlyLoXxC9r1IO1JIDO0yS/Uc4dWNYw4eEabTViZmiDQmP0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715826077; c=relaxed/simple; bh=+nqrNVmYmohfUrprPzD9C57d3zHyTeg7Lioodc9p4g4=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=fiqIWe5myy+yIYLdThAPFegDVIMu78T9+zcuTAIowyFnQjIwaYtFQ6TKZxkbQarYnzZugVifga4JX6GijZgikW2aPmyjvYKtYoH9IgEyY2Hgbx+L5Bz8nHivOaXJQEyyGU23WsRF7eYbzrMCBYHTXngI0vB0opoAXDdNo6O/mhI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=CUcvsj5s; arc=none smtp.client-ip=209.85.167.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3c9b5776fbfso381315b6e.1 for ; Wed, 15 May 2024 19:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1715826075; x=1716430875; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aXSD811bYryV9ebSAntCLnwE4mJzzmb6s7DeS7yDo6M=; b=CUcvsj5sonSvj7lF7ElggVjGiNhtZN6I94+ShduIWD8EI9vcHl33AMM4pu6K2UaIhW AavsrkqmmlfEeKGaDcpvVlO71jdpZv9oeGpAOVcx3b1YXazjwXmCsL9u4tUNE7W21qED /8+OOhWWjSBHfoMi15vSSsGwKi62gmoGv96SI1Nu7DuMGZoPmHYWszzSLEvkzecGsMtM YH2DcK9W4i4YkwIYhUAwDk2gxuI0LQPA/OZwiOqbhcirwRCJ//jl7CPkFZztpxr80Mh0 T+q8+4PoyuyePihpv+3jJ7QTgJnW/9hoKdfS6iBF0w3itT8DkzO3HS2S5jFCp5BmygJE gyUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715826075; x=1716430875; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aXSD811bYryV9ebSAntCLnwE4mJzzmb6s7DeS7yDo6M=; b=MspiREOjQLNda8C4azrQTieVaNG4w7a4mdTkT8LVq9MfbV/waFQ2B/2HmT0ENINpQZ 8xsMDtgOdAbmq9m41g8evFd0fLmhf7lkW0URMyStQ3wecmP/dyHpIrdwllfX+IpkU2cX IiwcKQHLzmHscZizGiVRYk+ZmxYjG+fl9zTrZlI7vK5zKbEqInk4iz2alTqOFaHXTshW QFd+AT2HPi19Oymc33PEadObty6xDSFGHKWmwP7WF3N9dltmrWvzuvrzvm3VnwvAt8K2 3C8jNP1bkDtAWkCMdSJax/9gZ6ySTgSooMr4bXZKR0VyZNhQFRyfNuvGJPStBXj91k8f AeXA== X-Forwarded-Encrypted: i=1; AJvYcCXoRIgk6lmkVFGO4F9VC8+bbWGjEJ/OdYImIESVogLlsJ8Yjn09xby3BYUM6VVAf45IxFhepuLUg02QBHXWIHpMuw+7plaRe5XsY4EL X-Gm-Message-State: AOJu0YwDXxuPBul6Myl0YfvyqMhT6419N4rKvNc/bjClXrZrFaLYF4// NjpxnSojkPYFYmyzK2yWtp5bypmBjRhRmdzcja8nazoZGNCJ7U44SePJtNYPvIw= X-Received: by 2002:a05:6830:14cd:b0:6f0:e2aa:ea49 with SMTP id 46e09a7af769-6f0e92ce674mr20305110a34.3.1715826075518; Wed, 15 May 2024 19:21:15 -0700 (PDT) Received: from [127.0.0.1] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-634024a3eb4sm12257551a12.0.2024.05.15.19.21.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 19:21:14 -0700 (PDT) From: Jens Axboe To: Tejun Heo , Josef Bacik , Waiman Long Cc: cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Schatzberg , Ming Lei In-Reply-To: <20240515143059.276677-1-longman@redhat.com> References: <20240515143059.276677-1-longman@redhat.com> Subject: Re: [PATCH] blk-cgroup: Properly propagate the iostat update up the hierarchy Message-Id: <171582607425.11025.1197820625337989209.b4-ty@kernel.dk> Date: Wed, 15 May 2024 20:21:14 -0600 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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.5-dev-2aabd On Wed, 15 May 2024 10:30:59 -0400, Waiman Long wrote: > During a cgroup_rstat_flush() call, the lowest level of nodes are flushed > first before their parents. Since commit 3b8cc6298724 ("blk-cgroup: > Optimize blkcg_rstat_flush()"), iostat propagation was still done to > the parent. Grandparent, however, may not get the iostat update if the > parent has no blkg_iostat_set queued in its lhead lockless list. > > Fix this iostat propagation problem by queuing the parent's global > blkg->iostat into one of its percpu lockless lists to make sure that > the delta will always be propagated up to the grandparent and so on > toward the root blkcg. > > [...] Applied, thanks! [1/1] blk-cgroup: Properly propagate the iostat update up the hierarchy commit: 9d230c09964e6e18c8f6e4f0d41ee90eef45ec1c Best regards, -- Jens Axboe