From patchwork Tue Jul 31 16:04:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 1260991 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 C5DB4DF26F for ; Tue, 31 Jul 2012 16:09:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755457Ab2GaQJY (ORCPT ); Tue, 31 Jul 2012 12:09:24 -0400 Received: from mail-vb0-f46.google.com ([209.85.212.46]:54893 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755441Ab2GaQJX (ORCPT ); Tue, 31 Jul 2012 12:09:23 -0400 Received: by mail-vb0-f46.google.com with SMTP id ff1so5920363vbb.19 for ; Tue, 31 Jul 2012 09:09:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=WydmnXhdS5m0CmCdRG7SV0ssMcLvP0omlJ8wrxgPF0I=; b=Bt/K06DnLU7PwZ8ELmU/jkMrpXPeYYwWxVJRL1fWedD4M4KQh3rAKLqSbuez3sdH/R 0cG6ZcfVT2h5eCxLBaLHZDktn7X/AXPCi+sd0joggbDTMrpNRCEnPIeTJ7zK97L5PQxE fr7dvOz643iK+7kTAZ8XRKAq1UDv9HVugnY7FZIbJYPWly3UjujHZ96E4U1N4uqlDLem i49bSRvVS3N1kvQxikK6hRZqHDmr+diDmo2KytO66CRltISmkin0rQ6GomyNKH8CScYY FEVESv5pj+6nOQxEv3M7QWEWBEsC0m0+xvGnO5EF9PWM062tKWm3Hu3fj1mPh6SHnyOr mn1Q== Received: by 10.220.242.77 with SMTP id lh13mr14393837vcb.53.1343750963307; Tue, 31 Jul 2012 09:09:23 -0700 (PDT) Received: from localhost ([193.47.165.251]) by mx.google.com with ESMTPS id bj6sm424717vdc.12.2012.07.31.09.09.21 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 09:09:22 -0700 (PDT) From: Alex Netes To: linux-rdma@vger.kernel.org Cc: Alex Netes , Hal Rosenstock , Vladimir Koushnir Subject: [PATCH 20/27] Fix crash in ucast cache when chain of switches connected back at once to the fabric Date: Tue, 31 Jul 2012 19:04:48 +0300 Message-Id: <1343750695-28063-20-git-send-email-alexne@mellanox.com> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1343750695-28063-1-git-send-email-alexne@mellanox.com> References: <1343750695-28063-1-git-send-email-alexne@mellanox.com> X-Gm-Message-State: ALoCoQkJovSbH7zHgz6vuQFNDXntbvs7j522/0cKBaUKV4oOVCPJegtEP2vJ5HzZLhaZ6yFZar/L Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Alex Netes Signed-off-by: Hal Rosenstock Signed-off-by: Vladimir Koushnir --- opensm/osm_ucast_cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opensm/osm_ucast_cache.c b/opensm/osm_ucast_cache.c index fc28be7..f0b2346 100644 --- a/opensm/osm_ucast_cache.c +++ b/opensm/osm_ucast_cache.c @@ -325,6 +325,8 @@ cache_restore_ucast_info(osm_ucast_mgr_t * p_mgr, free(p_sw->hops); p_sw->hops = p_cache_sw->hops; p_cache_sw->hops = NULL; + + p_sw->need_update = 2; } static void ucast_cache_dump(osm_ucast_mgr_t * p_mgr)