From patchwork Tue Aug 28 18:10:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1382201 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 0F075DF283 for ; Tue, 28 Aug 2012 18:10:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751679Ab2H1SK1 (ORCPT ); Tue, 28 Aug 2012 14:10:27 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:46496 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236Ab2H1SK0 (ORCPT ); Tue, 28 Aug 2012 14:10:26 -0400 Received: by ialo24 with SMTP id o24so11245509ial.19 for ; Tue, 28 Aug 2012 11:10:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=YufDrGnAEHbBCa3QnrhRW2V71ux7wcBFUt8teviNEWg=; b=fJLwGBQcwA4rPBhoW8VrCQh68rFcZNYH6KofVCFEGd5GfR15YeDEWR3xnbRqp+LBbD lelGLXaiHJjZZ39FL2CQ++8UUEwfE+h0FaTmbe0gOTRKxmBE80QXh/KA2BBN9MTyzjy2 ploIggXP6r7NlOlgv5LZCKV1x0wOw+zPllWPJ22S3jsunLenFLG/Ft0JfunBiIBI2Lpa HQsOMlIDtqcNdwvB2C2oswUl7qRAHprDBowWIfaWmWdmj/NkuOBnFF0YkvS5YYC6TfLg 6+2dCpalwiWn1ddoGblLUUfuJD4B+0W1HEEFzP4/rnhZDZldcOUBUZ7NPLqL0AJ0OA7/ Ml4w== Received: by 10.50.1.204 with SMTP id 12mr14809705igo.56.1346177426257; Tue, 28 Aug 2012 11:10:26 -0700 (PDT) Received: from [192.168.1.103] (c-71-192-10-85.hsd1.ma.comcast.net. [71.192.10.85]) by mx.google.com with ESMTPS id xm2sm9101096igb.3.2012.08.28.11.10.24 (version=SSLv3 cipher=OTHER); Tue, 28 Aug 2012 11:10:25 -0700 (PDT) Message-ID: <503D098A.9030503@dev.mellanox.co.il> Date: Tue, 28 Aug 2012 14:10:18 -0400 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: Alex Netes CC: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH] opensm/osm_sw_info_rcv.c: Fixed locking issue on osm_get_node_by_guid error X-Gm-Message-State: ALoCoQnBulJ8JBU5Cy+e8sR9Gk2G5s9Wd1HqDCiv1YHF6QkWLCLXI+hafRmO5GM11DQGdz5Hd/MJ Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/opensm/osm_sw_info_rcv.c b/opensm/osm_sw_info_rcv.c index 84e7fe0..122af89 100644 --- a/opensm/osm_sw_info_rcv.c +++ b/opensm/osm_sw_info_rcv.c @@ -378,7 +378,7 @@ void osm_si_rcv_process(IN void *context, IN void *data) /* we might get back a request for signaling change was detected */ sm->p_subn->force_heavy_sweep = TRUE; - CL_PLOCK_RELEASE(sm->p_lock); Exit: + CL_PLOCK_RELEASE(sm->p_lock); OSM_LOG_EXIT(sm->p_log); }