Re: [PATCH v2] RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq

From: Leon Romanovsky

Date: Sun Oct 11 2026 - 06:57:41 EST



On Mon, 05 Oct 2026 02:01:15 -0700, Quanye Yang wrote:
> On disconnect the client error recovery path calls ib_drain_qp(), which
> requires one free RQ slot and that no recv WQEs are posted while the
> queue is being drained.
>
> When the server is loaded with always_invalidate=N, the path does not
> advertise RTRS_MSG_NEW_RKEY_F. A client-requested invalidation is then
> a standalone SEND_WITH_INV. The recv completion path did not repost
> that WQE; it posted two empty recv WQEs later, when the RDMA-with-IMM
> response carried RTRS_IO_RSP_W_INV_IMM. If the invalidate receive
> never arrived, each such response increased RQ occupancy by one until
> ib_post_recv() started returning -ENOMEM and __ib_drain_rq() failed
> with:
>
> [...]

Applied, thanks!

[1/1] RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq
https://git.kernel.org/rdma/rdma/c/3255d6b8349157

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>