From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796013909; b=F+ris8wozQF4YPhQClToI5kv7jaOc6yhZc2SQ7Z0UYMH9Jo9FRJYfvPB5T3LTUK3nMYd 0fW+fBvLxzo1p5/j7nGePKdW0ZH02KYyQ7Ism0ku2WK22rwIFMSazzwOq92wJ2iElBOMK BhLyXCaSO353gDdz+zhe/QA1s10ZzOpLr+FC5/sFU3ollwshgT63MxkooRdIII5mrs9s6 U5Yo4xQI5XClwLK1xF9xmHptGRTBc2PikvP+la33bf4a7VSHcNEqHSc00AFUmJ1clRvl8 GDKW0vAU8ksLYT5N+l30zwGg8X6xwMKPQdby5k55QtFcSrGOEesEx4gvmsaXuQ5b5OA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796013909; h=Received:DKIM-Signature:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=eWv1VO6uMDOIeR7fm3uf/X3L01eaZyI3wMqP9IROMjQ=; b=dV/m+2Ehjup/EZFUxDdKqFYhahhntnkPSMPjILR/pU4UdQIuUGLr/M9wLz/YXPB51OvG OviD1iXl1mk07UyHWQ1b1/WRYbXeiLJHLMY3kPZ0IXq8REyVaZxE/o6sv7poqbL5wJLDe RoI1QeM/PEeGCYDoW0U3djs7hFAS2YHDbAnQZ3rQv2/lRStL5rgbswLcQzufa/QJ0lYj2 QS7sMM9E0pOzOjVt/tU9v5ueWkcjX0COw0ch9670LjOulV6j2q3ElWddp6UNKyzltsVWS JqQQDwqvUpBeMAJN6nocbffVpKU3p8CLZ0tybKwP8FNL2U6ckF+zmSSR/nKn9vgfmRA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="CIMXRi//"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53C73606A31C; Mon, 30 Nov 2026 04:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CIMXRi// Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD5001F00896; Mon, 30 Nov 2026 04:45:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796013909; bh=eWv1VO6uMDOIeR7fm3uf/X3L01eaZyI3wMqP9IROMjQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=CIMXRi//2B8JFfqAzunxZezu3shseHU+o5CaUQ9kXzSivigWNUwvf6T3IuU+7j5Lv cUlcTjqEJXKa8ketI5WtvV8jxUXx5hInf8NPZFZa5/WAtQw/h68XoNdz1fMWmGSAwn rRF0xRzX+M8UcKCpPLOx1ZlL3fRuYWmXZ08Z5dHBT4zUX+/RrOcM/tqr9jed8VLi/J korNAa18u6Oe+LfhUboK+efAtiFnZj32ai1pfdkzPnpIp4Mb3Ih8QdprA9NAuPuPHC fqI35TDHpm2+IXnDAiF5HAygiWvVUylaiq1JHDHIBTmaIY8Ii1KLndrZcny25ABgt/ uoj8/JOzP1XGw== Date: Sun, 29 Nov 2026 18:45:08 -1000 Message-ID: <2a97178dae3775b8058e1a06f67e51f5@kernel.org> From: Tejun Heo To: Chris Down Cc: Greg Kroah-Hartman , Johannes Weiner , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Serge Hallyn , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , Yonghong Song , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , driver-core@lists.linux.dev, cgroups@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, sashiko-bot@kernel.org Subject: Re: [PATCH v3 0/3] kernfs: Build paths in linear time with respect to depth In-Reply-To: References: X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Sun, Nov 29, 2026 at 07:48:15PM -0800, Chris Down wrote: > kernfs_path_from_node() walks back up from the leaf for each name in the > path, so the work grows with the square of the depth, and reading > /proc//cgroup does that with IRQs off and css_set_lock held. > Patch 1 builds the path in a single walk instead. As Tejun suggested on > v1, a path which doesn't fit now returns -E2BIG and keeps its end rather > than its start, with "..." in front of it. Reads of /proc//cgroup, > and of /proc//mountinfo with a cgroup mount rooted at such a path, > fail again as they did before v6.8, when the name loop stopped reporting > truncation. Patches 2 and 3 update sched/debug, which added its own > "..." at the end, and cgroup_iter, which assumed that nothing would be > left in the buffer. For the series, Acked-by: Tejun Heo Thanks. -- tejun