[PATCH 0/2] nvmet-rdma: fix response resource leak on queue teardown
Shin'ichiro Kawasaki
shinichiro.kawasaki at wdc.com
Sun Jun 28 22:15:26 PDT 2026
When an nvme target with rdma transport is removed while I/Os are in
flight, a response can be posted but its send completion is never
delivered before the connection is torn down. This leaks the request
SGLs and the RDMA read/write context. The leaks are recreated by
running blktests nvme/061 with rdma transport and the siw driver [1].
[1] https://lore.kernel.org/linux-nvme/ajtk1CaN1pBreS4O@shinmob/
This series addresses the problem. The first patch is a preparation
refactoring. The second patch fixes the problem by reclaiming memory
objects on queue QP teardown.
Shin'ichiro Kawasaki (2):
nvmet-rdma: factor out response resource cleanup
nvmet-rdma: fix response resource leak on queue teardown
drivers/nvme/target/rdma.c | 31 ++++++++++++++++++++++++++++---
1 file changed, 28 insertions(+), 3 deletions(-)
--
2.54.0
More information about the Linux-nvme
mailing list