summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAmmar Ratnani <ammrat13@gmail.com>2026-09-08 08:44:26 -0700
committerLeon Romanovsky <leon@kernel.org>2026-09-22 09:20:14 -0400
commitba88a28b47a703c3637ead33b1c70afab0803513 (patch)
tree3ea0eb3079c5d98199ac41d21c1cac654d8208ca /tools/lib/python
parentebb65190349537933a796ee662d05d0464bd4066 (diff)
RDMA/core: Force disconnect if DREP and DREQ fail
When we call `rdma_disconnect`, it's possible that we fail to send both a DREQ and a DREP. In that case, we currently either do nothing or move into the `IB_CM_TIMEWAIT` state. Either way, we remain in the `RDMA_CM_CONNECT` state. Anyone waiting for us to disconnect hangs. Instead, while we're connected, when we call `rdma_disconnect`, and fail to send both a DREQ and a DREP, mark the connection as disconnected. Call the upper layer's handler for the disconnect, and destroy the connection if instructed. Cc: Leon Romanovsky <leon@kernel.org> Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: Paulo Alcantara <pc@manguebit.org> Cc: Stefan Metzmacher <metze@samba.org> Cc: Tom Talpey <tom@talpey.com> Cc: linux-rdma@vger.kernel.org Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ammar Ratnani <ammrat13@gmail.com> Link: https://patch.msgid.link/20260908154454.10966-2-ammrat13@gmail.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions