diff mbox

[02/27] Add support to reread configuration file when stacked in rediscovery loop.

Message ID 1343750695-28063-2-git-send-email-alexne@mellanox.com (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Alex Netes July 31, 2012, 4:04 p.m. UTC
If SM is stucked in continuous rediscovery loop, it will never reach
rereading the configuration files.

Signed-off-by: Alex Netes <alexne@mellanox.com>
---
 opensm/osm_state_mgr.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/opensm/osm_state_mgr.c b/opensm/osm_state_mgr.c
index 4d762a3..e8c76c0 100644
--- a/opensm/osm_state_mgr.c
+++ b/opensm/osm_state_mgr.c
@@ -1251,8 +1251,10 @@  repeat_discovery:
 	}
 
 	/* if new sweep requested - don't bother with the rest */
-	if (sm->p_subn->force_heavy_sweep)
+	if (sm->p_subn->force_heavy_sweep) {
+		config_parsed = 0;
 		goto repeat_discovery;
+	}
 
 	osm_opensm_report_event(sm->p_subn->p_osm,
 				OSM_EVENT_ID_HEAVY_SWEEP_DONE, NULL);