Message ID | 20250103015020.78547-9-inwardvessel@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7340E77197 for <linux-mm@archiver.kernel.org>; Fri, 3 Jan 2025 01:50:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9EE776B0096; Thu, 2 Jan 2025 20:50:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 99DC76B0098; Thu, 2 Jan 2025 20:50:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C9BF6B0099; Thu, 2 Jan 2025 20:50:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 5C5C56B0096 for <linux-mm@kvack.org>; Thu, 2 Jan 2025 20:50:45 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 1B7E81C6A85 for <linux-mm@kvack.org>; Fri, 3 Jan 2025 01:50:45 +0000 (UTC) X-FDA: 82964461062.02.83AC915 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by imf23.hostedemail.com (Postfix) with ESMTP id 36E3414000A for <linux-mm@kvack.org>; Fri, 3 Jan 2025 01:50:08 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=eZc5xQ0Q; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf23.hostedemail.com: domain of inwardvessel@gmail.com designates 209.85.214.179 as permitted sender) smtp.mailfrom=inwardvessel@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1735868995; a=rsa-sha256; cv=none; b=mUtc/Xw1e664zrk3BZAy6zqnb1ZAXasTAGLda8BY85RYpsBGHr3ttdJ6FVu3FiBWqG7ien KN2PU076BV+ZuJVX3VEsa96lE3FpHl2q4Y8sbJNLXOK7So1hCEHCm4T+PRX8XcA/0AkRJ0 Fq3RNWULX94OXbY1ZiKi3Oby582fA+M= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=eZc5xQ0Q; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf23.hostedemail.com: domain of inwardvessel@gmail.com designates 209.85.214.179 as permitted sender) smtp.mailfrom=inwardvessel@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1735868995; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=yySB7M2h6IxrKtXZnUHVaoTBxDNRO4MzaqO/1vgyTwU=; b=GiwNbX3vPGB72OZE4JyrxEMyngwusFqvboU/3vyVkeS6sG778j/AAZe4h3zHnqX0Km/esC U8CD4ra+mbAxN8u6aNYAi/6i1hXmL8fWdDtCdcodjT3RlXDfOvi4FZJorIlmhq2szEQpls Gti1pETS2gkzGRLzvNIrzSZHUupgMeo= Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2163dc5155fso160546175ad.0 for <linux-mm@kvack.org>; Thu, 02 Jan 2025 17:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735869042; x=1736473842; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yySB7M2h6IxrKtXZnUHVaoTBxDNRO4MzaqO/1vgyTwU=; b=eZc5xQ0QYi3/XjzmM061Uzen5EgT6jFoHfjVLD/VB3t/Zamgw/Q+lpWXOEKkeqx/Gl WH2Xd445MUogIXze0t4BgFwqaDk9N+FdJU7M+uyZCf3WpKe1g9QTOP+IkIJ7FI/Qesth lOIMETs1Hgipm6lGOWaufl3c+Qm0sAdWxPr2izNmBHHXZk0SmQjKMSTS1XRFlQQ21WDx MtDYYD99srwqpQweSUJoIVGZVP9hBxeeqWhF7FYZciajOsXozm1kxD4veAOFcr4gyLOY Kd7UMlVNbSnwhTSALZM6oTlt/6KcziC4kAb20cj/BodNyFJt0c3e2HMvJPpaq0CLJtPn E+/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735869042; x=1736473842; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yySB7M2h6IxrKtXZnUHVaoTBxDNRO4MzaqO/1vgyTwU=; b=ultvZuUrk4CcFox+k+ZrUh6HeMYMwDlULjaroHli6y5A7nabpLs1Hn5DWIXPowGRsk IVbcMj7T/F3yaNTxUIzK16VP4zvw/n2DmvhbojcbKxQTTWF+RCqgm4533wkF1IoiANBN c4HiAUkoZTLUxYNd6Ds3go8x2OFttH5OGc1W8oTeEvAeCbRiBDF3jOAr+L1KPAEgKTKZ W6ZBy3XxZgUgdIYMSWAgP8pC9UY4bGKl+UYlQ1v63uorRFo9wCovmhEBWqP/zkbS37nz JvgVskOVxJk9wnIVs+fj+Yl8Hw/vTHjY+2HQ5mLsHQUYS/ZHHz/4yf/8lPy8lOwA4ETo sMhw== X-Gm-Message-State: AOJu0YxF5ulBkxs7PTeSQkRKjPU0tvKGEJU4S+7I98BBozcPl+qtjKOQ yyZvZWweO8sB7zR7yK+Monk1ZLy+kxz55H8wml4cnGDDSnNK5R/W X-Gm-Gg: ASbGncubhek2840jDzinbEcPY/oJpEHOJ1Oa3hfJ87c7h8aWuND2vIVMx1sAbyA36KY bDekbpjTiIOTS6kRK2Aos135xrIz+6Z0OcnHE02M8eOF8fUcagw+YV8FmyW8CJfURooIbwct7cq be9HPrrRA1/ywRtZ2n383mXwGqz2+Os82A2m+Q5AlG7zzpH2iK3KUE7Nr8v42mfUHsm0el+Pp1D cgDnVV2TXLJv0psQcxBiX7YdtnhKNBdrJE8IoYE9zkn+KqdbfLRTGtCFQ8guSZiymvvKI18xCiT 9N22evDQ4/e9PvowoA== X-Google-Smtp-Source: AGHT+IECu6ABKn1pd4uHiROyoxYhMZo/Ay/F4QxXtatl8UwP6Qp0oTpLfZ1n23xS7eENlQtjkGSayA== X-Received: by 2002:a17:902:da87:b0:216:554a:212c with SMTP id d9443c01a7336-219e6f12d63mr582089575ad.46.1735869042055; Thu, 02 Jan 2025 17:50:42 -0800 (PST) Received: from saturn.. (c-67-188-127-15.hsd1.ca.comcast.net. [67.188.127.15]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca04ce7sm228851505ad.283.2025.01.02.17.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 17:50:41 -0800 (PST) From: JP Kobryn <inwardvessel@gmail.com> To: shakeel.butt@linux.dev, tj@kernel.org, mhocko@kernel.org, hannes@cmpxchg.org, yosryahmed@google.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, cgroups@vger.kernel.org Subject: [RFC PATCH 8/9 v2] cgroup: remove bpf rstat flush from css generic flush Date: Thu, 2 Jan 2025 17:50:19 -0800 Message-ID: <20250103015020.78547-9-inwardvessel@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250103015020.78547-1-inwardvessel@gmail.com> References: <20250103015020.78547-1-inwardvessel@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 36E3414000A X-Stat-Signature: fmr5d3mdmif91iseewg448wcczkh4ws6 X-Rspam-User: X-HE-Tag: 1735869008-902256 X-H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iPx1S7X4Du795x38nOv7ncRilTWm9RroNI0vm7Wir2ZPLlIJgQyxOfx/MxplGfdgVY+yQNkUUlbKxt7nugeD3srz79bMg2jvYSDsBlo25kLPk0OVFaaP5P/F0+tK1diJkL94XzrAm9CpJgTFuUbeYvn53KTc3/DAmwdQILY+E/qS+gc/bYEzV9FIXHrY1FUNDhcb3qedQt9OO78gz9YVemhi7DSNxmsiH+gLozpUv5glZTTsR/QvpQxfhJX0Ic5/I68Fdi4yWZN7LaITkX9BLJfnrjBjxmUtgZA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000467, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
cgroup: separate per-subsystem rstat trees
|
expand
|
diff --git a/kernel/cgroup/rstat.c b/kernel/cgroup/rstat.c index c52e8429c75d..03effaaf09a4 100644 --- a/kernel/cgroup/rstat.c +++ b/kernel/cgroup/rstat.c @@ -346,10 +346,8 @@ static void cgroup_rstat_flush_locked(struct cgroup_subsys_state *css) for_each_possible_cpu(cpu) { struct cgroup_subsys_state *pos = cgroup_rstat_updated_list(css, cpu); - for (; pos; pos = pos->rstat_flush_next) { - bpf_rstat_flush(pos->cgroup, cgroup_parent(pos->cgroup), cpu); + for (; pos; pos = pos->rstat_flush_next) pos->ss->css_rstat_flush(pos, cpu); - } /* play nice and yield if necessary */ if (need_resched() || spin_needbreak(lock)) {
Remove the bpf-specific flush call from the generic subsystem flush. Leave it up to bpf programs to manually flush any subsystems desired by using the kfunc cgroup_rstat_flush(). Signed-off-by: JP Kobryn <inwardvessel@gmail.com> --- kernel/cgroup/rstat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)