]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/mana_ib: Drain send wrs of GSI QP
authorKonstantin Taranov <kotaranov@microsoft.com>
Tue, 29 Jul 2025 09:00:18 +0000 (02:00 -0700)
committerLeon Romanovsky <leon@kernel.org>
Wed, 13 Aug 2025 10:33:33 +0000 (06:33 -0400)
commit44d69d3cf2e8047c279cbb9708f05e2c43e33234
tree4e08f553e2d952d8cb01dc7eff60a716bb12e7f4
parent4d674c478dc51fe241376e215861d15f1a3a9dc4
RDMA/mana_ib: Drain send wrs of GSI QP

Drain send WRs of the GSI QP on device removal.

In rare servicing scenarios, the hardware may delete the
state of the GSI QP, preventing it from generating CQEs
for pending send WRs. Since WRs submitted to the GSI QP
hold CM resources, the device cannot be removed until
those WRs are completed. This patch marks all pending
send WRs as failed, allowing the GSI QP to release the CM
resources and enabling safe device removal.

Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link: https://patch.msgid.link/1753779618-23629-1-git-send-email-kotaranov@linux.microsoft.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mana/cq.c
drivers/infiniband/hw/mana/device.c
drivers/infiniband/hw/mana/mana_ib.h