public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 04/11] RDMA/nes: Resource not freed for REJECT connection
@ 2009-12-09 22:40 Faisal Latif
  0 siblings, 0 replies; only message in thread
From: Faisal Latif @ 2009-12-09 22:40 UTC (permalink / raw)
  To: Roland Dreier; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

During testing of REJECT connection error handling, the cm_id resources
are not release. When retransmit timer expires, need to send reset message
to remote node before sending ABORTED event.

Signed-off-by: Faisal Latif <faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 drivers/infiniband/hw/nes/nes_cm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index ae09463..08fcd25 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -513,6 +513,8 @@ static void nes_retrans_expired(struct nes_cm_node *cm_node)
 		send_reset(cm_node, NULL);
 		break;
 	default:
+		add_ref_cm_node(cm_node);
+		send_reset(cm_node, NULL);
 		create_event(cm_node, NES_CM_EVENT_ABORTED);
 	}
 }
-- 
1.5.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-09 22:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-09 22:40 [PATCH 04/11] RDMA/nes: Resource not freed for REJECT connection Faisal Latif

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