[PATCH v3 00/15] NTB: ntb_transport: Miscellaneous fixes

From: Koichiro Den

Date: Mon Sep 28 2026 - 11:27:55 EST


Hi,

This series attempts to fix miscellaneous issues in ntb_transport. Some
of these were split from the direct TX/RX series v1 [1], as they stand
on their own. Based on v7.3-rc2.

Dave, Frank and Logan, for v3, patches 3 and 6 don't yet have
Reviewed-by tags. Could you take a look?

Best regards,
Koichiro

[1] https://lore.kernel.org/r/20260810165136.2292436-1-den@xxxxxxxxxxxxx/
---
Changes in v3:
- Convert flags to atomic_t in a new prep patch. (Frank)
- Drop the redundant TX credit assertion. (Sashiko)
- Collect Reviewed-by tags. Thanks to Frank, Logan and Dave.

Changes in v2:
- Address Sashiko feedback, including regressions introduced by v1,
with new patches 5 and 10.
Note that to keep the series manageable, this revision does not
attempt to fix all the reported pre-existing issues.
- Add a fix for client removal ordering (patch 14).
- Reorder patches, moving v1 patch 4 after the fixes it depends on.
- Add missing Cc: stable@xxxxxxxxxxxxxxx.

v2: https://lore.kernel.org/r/20260910040836.3792333-1-den@xxxxxxxxxxxxx/
v1: https://lore.kernel.org/r/20260907142429.951930-1-den@xxxxxxxxxxxxx/


Koichiro Den (15):
NTB: ntb_transport: Remove the device debugfs directory
NTB: ntb_transport: Start TX offload thread after queue setup
NTB: ntb_transport: Make link setup flags atomic
NTB: ntb_transport: Avoid deadlock when cancelling link work
NTB: ntb_transport: Publish link state after QP setup
NTB: ntb_transport: Avoid losing QP link-up requests
NTB: ntb_transport: Clear link state before QP cleanup
NTB: ntb_transport: Stop QP work before freeing a queue
NTB: ntb_transport: Stop RX tasklet scheduling before freeing a queue
NTB: ntb_transport: Drain RX tasklets during link cleanup
NTB: ntb_transport: Wait for RX completions before resetting a QP
NTB: ntb_transport: Prepare remote RX info accesses for MW teardown
NTB: ntb_transport: Clear QP pointers when freeing an MW
NTB: ntb_transport: Abort link setup on QP MW allocation failure
NTB: ntb_transport: Remove clients before freeing transport resources

drivers/ntb/ntb_transport.c | 244 ++++++++++++++++++++++++------------
1 file changed, 167 insertions(+), 77 deletions(-)

base-commit: df2908090cda368b01ff43709f51890076c56157
--
2.51.0