[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260107042458.1987818-1-den@valinux.co.jp>
Date: Wed, 7 Jan 2026 13:24:56 +0900
From: Koichiro Den <den@...inux.co.jp>
To: ntb@...ts.linux.dev
Cc: jdmason@...zu.us,
dave.jiang@...el.com,
allenbh@...il.com,
Frank.Li@....com,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/2] NTB: ntb_transport: debugfs cleanups
This series cleans up the debugfs implementation in ntb_transport.
To make review and backporting easier, the fixes have been split into two
small and self-contained patches.
The first patch fixes an undersized buffer used for naming per-QP
debugfs directories, which could lead to name truncation and directory
collisions once the number of queues exceeds a single digit. This is a
candidate for stable tree inclusion.
The second patch converts the per-QP stats debugfs file to use seq_file.
This removes the hand-crafted kmalloc()/scnprintf() buffer handling,
simplifies the code, and avoids potential truncation as the stats output
grows.
No functional behavior of the NTB transport itself is changed. This
series is limited to debugfs robustness and maintainability.
v1->v2 changes:
- Split the original change into two patches:
* buffer size fix for debugfs directory names
* seq_file conversion for QP stats
v1: https://lore.kernel.org/all/20251217081955.3137163-1-den@valinux.co.jp/
Koichiro Den (2):
NTB: ntb_transport: Fix too small buffer for debugfs_name
NTB: ntb_transport: Use seq_file for QP stats debugfs
drivers/ntb/ntb_transport.c | 136 +++++++++++-------------------------
1 file changed, 41 insertions(+), 95 deletions(-)
--
2.51.0
Powered by blists - more mailing lists