[openib-general] [PATCH] uDAPL cma, missing cma event ack

Arlin Davis arlin.r.davis at intel.com
Thu Mar 16 11:58:26 PST 2006


James,

Fixes a corner case where a CMA event was not acknowledged during disconnect processing.

-arlin


Signed-off by: Arlin Davis ardavis at ichips.intel.com

Index: dapl/openib_cma/dapl_ib_cm.c
===================================================================
--- dapl/openib_cma/dapl_ib_cm.c        (revision 5854)
+++ dapl/openib_cma/dapl_ib_cm.c        (working copy)
@@ -1074,8 +1074,10 @@ void dapli_cma_event_cb(void)
                                if (conn->cm_id->qp)
                                        rdma_destroy_qp(conn->cm_id);

+                               rdma_ack_cm_event(event);
                                rdma_destroy_id(conn->cm_id);
                                dapl_os_free(conn, sizeof(*conn));
+                               return;
                        }
                        break;
                case RDMA_CM_EVENT_CONNECT_RESPONSE:








More information about the general mailing list