From patchwork Fri Jun 27 17:55:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Chu X-Patchwork-Id: 4436761 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 43B88BEECB for ; Fri, 27 Jun 2014 18:05:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 90653203B6 for ; Fri, 27 Jun 2014 18:05:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8399B203B5 for ; Fri, 27 Jun 2014 18:05:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752612AbaF0SFA (ORCPT ); Fri, 27 Jun 2014 14:05:00 -0400 Received: from prdiron-3.llnl.gov ([128.15.143.173]:29861 "EHLO prdiron-3.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751570AbaF0SE7 (ORCPT ); Fri, 27 Jun 2014 14:04:59 -0400 X-Attachments: Received: from auk59.llnl.gov (HELO [134.9.93.24]) ([134.9.93.24]) by prdiron-3.llnl.gov with ESMTP; 27 Jun 2014 10:55:33 -0700 Subject: [PATCH 2/3] opensm/osm_perfmgr.c: Add log message when perfmgr sweep is skipped From: Albert Chu To: linux-rdma@vger.kernel.org Date: Fri, 27 Jun 2014 10:55:33 -0700 Message-Id: <1403891733.30332.420.camel@auk59.llnl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-19.el5) 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=unavailable 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 Signed-off-by: Albert L. Chu --- opensm/osm_perfmgr.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/opensm/osm_perfmgr.c b/opensm/osm_perfmgr.c index 2b7ea6a..bfa63dc 100644 --- a/opensm/osm_perfmgr.c +++ b/opensm/osm_perfmgr.c @@ -1017,6 +1017,9 @@ void osm_perfmgr_process(osm_perfmgr_t * pm) if (pm->sweep_state == PERFMGR_SWEEP_ACTIVE || pm->sweep_state == PERFMGR_SWEEP_SUSPENDED) { cl_spinlock_release(&pm->lock); + OSM_LOG(pm->log, OSM_LOG_INFO, + "PM sweep state %d, skipping sweep\n", + pm->sweep_state); return; }