From patchwork Fri Dec 3 23:33:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 379331 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB3NXFvw012237 for ; Fri, 3 Dec 2010 23:33:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753918Ab0LCXda (ORCPT ); Fri, 3 Dec 2010 18:33:30 -0500 Received: from mga01.intel.com ([192.55.52.88]:17802 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753896Ab0LCXda convert rfc822-to-8bit (ORCPT ); Fri, 3 Dec 2010 18:33:30 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 03 Dec 2010 15:33:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.59,296,1288594800"; d="scan'208";a="864263169" Received: from orsmsx602.amr.corp.intel.com ([10.22.226.211]) by fmsmga001.fm.intel.com with ESMTP; 03 Dec 2010 15:33:29 -0800 Received: from orsmsx506.amr.corp.intel.com ([10.22.226.44]) by orsmsx602.amr.corp.intel.com ([10.22.226.211]) with mapi; Fri, 3 Dec 2010 15:33:29 -0800 From: "Davis, Arlin R" To: linux-rdma , "ofw@lists.openfabrics.org" CC: "Smith, Stan" Date: Fri, 3 Dec 2010 15:33:24 -0800 Subject: [PATCH 4/4] DAPL v2.0: ucm: release UD cm objects after AH is exchanged to avoid duplicate request drops Thread-Topic: [PATCH 4/4] DAPL v2.0: ucm: release UD cm objects after AH is exchanged to avoid duplicate request drops Thread-Index: ActyJdB1zpL8wMt1SpGrifvPhTdQ9QhG2UBwAAAhPyAAAAf+8AAACHqQAAAF/zA= Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-hashedpuzzle: lAI= AZ9x DLr9 DSLV DwNd EPFg ErTA FgCs I92K JOXz J0Uv MgpU N2pA PsSJ Qw6W RStb; 2; bABpAG4AdQB4AC0AcgBkAG0AYQBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAbwBmAHcAQABsAGkAcwB0AHMALgBvAHAAZQBuAGYAYQBiAHIAaQBjAHMALgBvAHIAZwA=; Sosha1_v1; 7; {9E499FDE-2B14-4DBE-B233-662F7C94260E}; YQByAGwAaQBuAC4AcgAuAGQAYQB2AGkAcwBAAGkAbgB0AGUAbAAuAGMAbwBtAA==; Fri, 03 Dec 2010 23:33:24 GMT; WwBQAEEAVABDAEgAIAA0AC8ANABdACAARABBAFAATAAgAHYAMgAuADAAOgAgAHUAYwBtADoAIAByAGUAbABlAGEAcwBlACAAVQBEACAAYwBtACAAbwBiAGoAZQBjAHQAcwAgAGEAZgB0AGUAcgAgAEEASAAgAGkAcwAgAGUAeABjAGgAYQBuAGcAZQBkACAAdABvACAAYQB2AG8AaQBkACAAZAB1AHAAbABpAGMAYQB0AGUAIAByAGUAcQB1AGUAcwB0ACAAZAByAG8AcABzAA== x-cr-puzzleid: {9E499FDE-2B14-4DBE-B233-662F7C94260E} acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 03 Dec 2010 23:33:47 +0000 (UTC) diff --git a/dapl/openib_ucm/cm.c b/dapl/openib_ucm/cm.c index 36291fd..5b157fd 100644 --- a/dapl/openib_ucm/cm.c +++ b/dapl/openib_ucm/cm.c @@ -1186,6 +1186,7 @@ ud_bail: (DAT_COUNT)ntohs(cm->msg.p_size), (DAT_PVOID *)cm->msg.p_data, (DAT_PVOID *)&xevent); + dapli_cm_free(cm); /* still attached to EP */ } else #endif { @@ -1358,6 +1359,7 @@ static void ucm_accept_rtu(dp_ib_cm_handle_t cm, ib_cm_msg_t *msg) (DAT_COUNT)ntohs(cm->msg.p_size), (DAT_PVOID *)cm->msg.p_data, (DAT_PVOID *)&xevent); + dapli_cm_free(cm); /* still attached to EP */ } else { #endif dapls_cr_callback(cm, IB_CME_CONNECTED, NULL, 0, cm->sp);