[PATCH v2 0/2] NTB: ntb_transport: debugfs cleanups

Koichiro Den <[email protected]>
Newsgroups dev.linux.lists.ntb,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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/[email protected]/


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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.