From patchwork Fri Mar 25 22:10:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 663341 X-Patchwork-Delegate: alexne@voltaire.com 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 p2PMKWnn023970 for ; Fri, 25 Mar 2011 22:20:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755313Ab1CYWU2 (ORCPT ); Fri, 25 Mar 2011 18:20:28 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:40402 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755148Ab1CYWU1 (ORCPT ); Fri, 25 Mar 2011 18:20:27 -0400 Received: by fxm17 with SMTP id 17so1489481fxm.19 for ; Fri, 25 Mar 2011 15:20:26 -0700 (PDT) Received: by 10.223.6.11 with SMTP id 11mr1479088fax.101.1301091626278; Fri, 25 Mar 2011 15:20:26 -0700 (PDT) Received: from [10.4.1.43] ([82.166.227.17]) by mx.google.com with ESMTPS id n26sm601697fam.13.2011.03.25.15.20.24 (version=SSLv3 cipher=OTHER); Fri, 25 Mar 2011 15:20:25 -0700 (PDT) Message-ID: <4D8D12DB.2060805@dev.mellanox.co.il> Date: Sat, 26 Mar 2011 00:10:35 +0200 From: Hal Rosenstock User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Alex Netes CC: linux-rdma@vger.kernel.org Subject: [PATCH] opensm/osm_opensm.c: Conditionalize sa_db_file_dump on sa_db_dump option 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 25 Mar 2011 22:20:39 +0000 (UTC) diff --git a/opensm/opensm/osm_opensm.c b/opensm/opensm/osm_opensm.c index 0de5fa4..5007dd2 100644 --- a/opensm/opensm/osm_opensm.c +++ b/opensm/opensm/osm_opensm.c @@ -273,7 +273,8 @@ void osm_opensm_destroy(IN osm_opensm_t * p_osm) cl_disp_shutdown(&p_osm->disp); /* dump SA DB */ - osm_sa_db_file_dump(p_osm); + if (p_osm->subn.opt.sa_db_dump) + osm_sa_db_file_dump(p_osm); /* do the destruction in reverse order as init */ destroy_plugins(p_osm);