From patchwork Wed Aug 18 13:38:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 120159 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7IDcORi023499 for ; Wed, 18 Aug 2010 13:38:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752926Ab0HRNiX (ORCPT ); Wed, 18 Aug 2010 09:38:23 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:50665 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751995Ab0HRNiX (ORCPT ); Wed, 18 Aug 2010 09:38:23 -0400 Received: by eyg5 with SMTP id 5so313317eyg.19 for ; Wed, 18 Aug 2010 06:38:19 -0700 (PDT) Received: by 10.216.231.97 with SMTP id k75mr7083100weq.4.1282138699224; Wed, 18 Aug 2010 06:38:19 -0700 (PDT) Received: from [10.4.1.29] ([62.219.166.71]) by mx.google.com with ESMTPS id w14sm200076weq.9.2010.08.18.06.38.17 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Aug 2010 06:38:18 -0700 (PDT) Message-ID: <4C6BE246.4080102@dev.mellanox.co.il> Date: Wed, 18 Aug 2010 16:38:14 +0300 From: Yevgeny Kliteynik User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA , Yevgeny Kliteynik Subject: opensm/osm_opensm.c: no report when SM is exiting 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 (demeter.kernel.org [140.211.167.41]); Wed, 18 Aug 2010 13:38:24 +0000 (UTC) diff --git a/opensm/opensm/osm_opensm.c b/opensm/opensm/osm_opensm.c index d3dc02e..50e8763 100644 --- a/opensm/opensm/osm_opensm.c +++ b/opensm/opensm/osm_opensm.c @@ -475,7 +475,7 @@ void osm_opensm_report_event(osm_opensm_t *osm, osm_epi_event_id_t event_id, cl_list_item_t *item; for (item = cl_qlist_head(&osm->plugin_list); - item != cl_qlist_end(&osm->plugin_list); + (!osm_exit_flag) && (item != cl_qlist_end(&osm->plugin_list)); item = cl_qlist_next(item)) { osm_epi_plugin_t *p = (osm_epi_plugin_t *)item; if (p->impl->report)