From patchwork Mon Feb 2 13:25:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 5762311 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A5F06BF440 for ; Mon, 2 Feb 2015 13:25:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD03C203E3 for ; Mon, 2 Feb 2015 13:25:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7E0E0203DF for ; Mon, 2 Feb 2015 13:25:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754028AbbBBNZy (ORCPT ); Mon, 2 Feb 2015 08:25:54 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:52369 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753790AbbBBNZx (ORCPT ); Mon, 2 Feb 2015 08:25:53 -0500 Received: by mail-wi0-f180.google.com with SMTP id h11so15102295wiw.1 for ; Mon, 02 Feb 2015 05:25:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=3irbiwqin8+grQwByZ3PM6+v3v1hz0/SzPq8uY6MT7M=; b=EAzOgXWJ5uDdJ1MVZKMtvqaxe+Tu0UUlaw/DHxujB7SUJZnXY4ED0T1MrGO+1Trx0J tmC/d3msna/V792v2DoRLKd4g2gqW7cdLPSUPh0fSxBGBlMnKDmTwBi/QntzNFXIzvXQ WdLBhrk0v1faSevJvoF5TJm+5MA+hVGQCTzbJk10/b5WUz2LJywIOVu7TSyu3dtrnaFO W1wcqYa2OrydYH2PqpDQQDOrAa1qM+/B/Rk+M1zSziewnoKo6V4mM6qynmA+Ny1OUjWP TKTF/2SUqB7iDL48TfHGmeTHXVsgMSCHpDw7CzjLmOpXCCnroLZoC/wm73Rvs2JD4nqt EWhQ== X-Gm-Message-State: ALoCoQl3SoT3XtXo4/y7cHNdq4Da2rNvPZHBHNV++jy+IyqpiehdraozEOE214mRYnkD/t9/15ic X-Received: by 10.180.12.166 with SMTP id z6mr23847857wib.65.1422883552588; Mon, 02 Feb 2015 05:25:52 -0800 (PST) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id a13sm19885313wic.3.2015.02.02.05.25.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 05:25:51 -0800 (PST) Message-ID: <54CF7ADC.5030706@dev.mellanox.co.il> Date: Mon, 02 Feb 2015 08:25:48 -0500 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Daniel Klein Subject: [PATCH opensm] osm_opensm.c: Call cl_disp_shutdown for SA SET dispatcher Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Daniel Klein Bug description: OpenSM does not call cl_disp_shutdown for SA SET dispatcher Signed-off-by: Daniel Klein Signed-off-by: Hal Rosenstock --- opensm/osm_opensm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/opensm/osm_opensm.c b/opensm/osm_opensm.c index afa2544..62a1f3a 100644 --- a/opensm/osm_opensm.c +++ b/opensm/osm_opensm.c @@ -316,6 +316,8 @@ void osm_opensm_destroy(IN osm_opensm_t * p_osm) /* shut down the dispatcher - so no new messages cross */ cl_disp_shutdown(&p_osm->disp); + if (p_osm->sa_set_disp_initialized) + cl_disp_shutdown(&p_osm->sa_set_disp); /* dump SA DB */ if ((p_osm->sm.p_subn->sm_state == IB_SMINFO_STATE_MASTER) &&