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=1795970210; b=TNqzp1jEqUziwP4wV5XUQUFVKndS0VWyM6mw4p+4lP8YTrqpL5xHZL41wq6Irgi1Hl8D odr5HRf6ZJxCeyGLZa8Fg4T08KTcP58lm0CVog23HZ00UETg/MYNeKUnnPyjt1aKX+gis 10UeTXtYSS1+S+epWl/X68jpsJ7oGGWtgtlPoQhWaNhqB+fLA5iLBM00uiwuCdBQ85ahH 8x0oOrrqMkqOxjhHFLnl4tvCgqhoKcFUGLzCGyTXDUu3VVpNOAPSnRUM61PZoD2KJkhwF IwbhYsgQg7nJXKbPEmT9lNOKypsaRsO7p5vvcvWJs2E0+cV3jgGh2FAPQBkEJJTpnfQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795970210; h=Received:DKIM-Signature:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=V6a6nVLw7G1Bc9PPOqtpvClc+iVHYPZZ3fqGZ2ZSkzM=; b=DAKGBA8B0HuxFhUZkM4tlIzeQTFeCsfbl6GF2whL6YjBLnsWu7tkVg8RxfiM/dbiMSyy LG7GKyuKy5w96kHLjja2KuCV2fuMka/SU3FFwO/xQy1HneHeB3tr3sPYdZybt16wWxfXG eyIsi8cmRLUpru3FH+2jZA8jKu4x+hv4ILDB2Tzs8zw4bk4wCP9vBZwve/r7wqkSLGS8r WtIfksN8Gvn331mV1KWreyQtwVX/OZ+sEpF35VY37qRieng0QBLw791VmA869PkB6Gu3b C+vihsvYK+RqrR94LSu+jGZA3EZ8UMmyumMDJW3JYmHhABVaRSEhRUT9+dbnHkYewZg== 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=igkq4Fia; 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)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3492B606A31C; Sun, 29 Nov 2026 16:36:50 +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=igkq4Fia Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABC931F000C1; Sun, 29 Nov 2026 16:36:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795970209; bh=V6a6nVLw7G1Bc9PPOqtpvClc+iVHYPZZ3fqGZ2ZSkzM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=igkq4FiatoYoaJoF2yjhd8lSEK27B9vE/9wr3ckYcucj8E0xnTtb5AXU2S8SnTm+h tkzVgfg6rKRanlBjwXG8DUuclRYJNfixw+g0zuq+4+eM3uA3bj7YoxQ30tAilaevY5 aSwayy0gzTRKushY3SY/hqwvWASFI3Go0wLhIu6CcBMvZvM2AHsZwUQ/TWBFbDc+3V 5S2qTJtLR23CIrl163d9XnVbIQo/kxet/1N/mWHTzoWHzzA3CvNkwsVb9MiMCGtqET yytw7800L0V7NX4dwuUF41TTyy6v7VsQOW2NHouLo2O9v2G8wwa05N1fqHPjW6fbux o8qsb53jUXCxQ== Date: Sun, 29 Nov 2026 06:36:48 -1000 Message-ID: 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 Subject: Re: [PATCH v2 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 Hello, Chris. On Sat, Nov 28, 2026 at 09:38:19PM -0800, Chris Down wrote: > 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. ... > Patches 2 and 3 > update sched/debug and cgroup_iter, which assumed that the start of the > path would be kept or that nothing would be left in the buffer. The patches look good to me in general. Two things: - I think it'd be better to handle "..." in kernfs itself: when the path doesn't fit, kernfs_path_from_node_locked() puts "..." at the start of the buffer. Then sched/debug only needs to drop its suffix. - Can you please also make pr_cont_kernfs_path() print what's in the buffer when the path doesn't fit, instead of "(name too long)"? Thanks. -- tejun