Re: [PATCH rdma-next] RDMA/erdma: complete object teardown when the destroy command fails
From: Leon Romanovsky
Date: Thu Jul 23 2026 - 07:43:30 EST
On Wed, 22 Jul 2026 16:13:54 +0300, Leon Romanovsky wrote:
> erdma_destroy_qp(), erdma_destroy_cq(), erdma_dereg_mr(), and
> erdma_destroy_ah() returned early when erdma_post_cmd_wait() failed,
> leaking the queue buffers, MTTs, doorbells and the STAG, QPN, CQN and AHN
> identifiers. A command timeout clears ERDMA_CMDQ_STATE_OK_BIT and
> permanently disables the command queue, so no retry can succeed; the RDMA
> core keeps the object after a failed destructor and forced uverbs cleanup
> then nulls the pointers, making the resources unreachable.
>
> [...]
Applied, thanks!
[1/1] RDMA/erdma: complete object teardown when the destroy command fails
https://git.kernel.org/rdma/rdma/c/652befcba956ef
Best regards,
--
Leon Romanovsky <leonro@xxxxxxxxxx>