diff options
| author | Koichiro Den <den@valinux.co.jp> | 2026-08-17 14:35:16 +0900 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-20 13:43:24 -0700 |
| commit | 256496397287334a19ed80ec7be92bffcae76b9d (patch) | |
| tree | b9e5ad11672a9e8aea807d6fa9f2b8eb6240786e /tools/perf/scripts/python | |
| parent | 8197c180052fe5ee644e91b31d98328bea8a31ed (diff) | |
| download | linux-256496397287334a19ed80ec7be92bffcae76b9d.tar.gz linux-256496397287334a19ed80ec7be92bffcae76b9d.zip | |
NTB: ntb_transport: Recycle TX entries before client callbacks
ntb_tx_copy_callback() invokes the client callback before returning the
entry to tx_free_q. The callback may wake a stopped client queue, only
for the next enqueue to find no local entry and return -EBUSY. The window
is narrow, but the retry is unnecessary.
Save the callback data and length, then return the entry to tx_free_q
before invoking the client. A completion callback then means both the
client buffer and transport entry are ready for reuse.
Fixes: fce8a7bb5b4b ("PCI-Express Non-Transparent Bridge Support")
Cc: stable@vger.kernel.org
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260817053519.4135287-2-den@valinux.co.jp
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
