[PATCH v4 00/15] NTB: ntb_transport: Miscellaneous fixes
From: Koichiro Den
Date: Thu Nov 26 2026 - 21:06:01 EST
This series attempts to fix miscellaneous issues in ntb_transport.
Jon, ntb-next has moved forward, so I've rebased this series onto its
latest tip. The rebase was conflict-free and needed no code changes.
I've also updated a comment in patch 6 as Logan suggested.
Please consider picking this up for ntb-next.
Best regards,
Koichiro
---
Changes in v4:
- Rebase onto the current ntb-next.
- Clarify the memory-barrier comment in patch 6. (Logan)
- Collect Reviewed-by tags from v3. Thanks for reviewing!
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.
v3: https://lore.kernel.org/r/20260928152550.3354675-1-den@xxxxxxxxxxxxx/
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 | 245 ++++++++++++++++++++++++------------
1 file changed, 168 insertions(+), 77 deletions(-)
base-commit: 0aa2e6bc39f17e1199345aaf21278e3ea25e6036
--
2.54.0