Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nvmet-rdma: fix response resource leak on queue teardown
@ 2026-06-29  5:15 Shin'ichiro Kawasaki
  2026-06-29  5:15 ` [PATCH 1/2] nvmet-rdma: factor out response resource cleanup Shin'ichiro Kawasaki
  2026-06-29  5:15 ` [PATCH 2/2] nvmet-rdma: fix response resource leak on queue teardown Shin'ichiro Kawasaki
  0 siblings, 2 replies; 5+ messages in thread
From: Shin'ichiro Kawasaki @ 2026-06-29  5:15 UTC (permalink / raw)
  To: linux-nvme, Keith Busch
  Cc: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni,
	Shin'ichiro Kawasaki

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-30 11:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-29  5:15 [PATCH 0/2] nvmet-rdma: fix response resource leak on queue teardown Shin'ichiro Kawasaki
2026-06-29  5:15 ` [PATCH 1/2] nvmet-rdma: factor out response resource cleanup Shin'ichiro Kawasaki
2026-06-30 11:54   ` Christoph Hellwig
2026-06-29  5:15 ` [PATCH 2/2] nvmet-rdma: fix response resource leak on queue teardown Shin'ichiro Kawasaki
2026-06-30 11:54   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox