[ofa-general] [PATCH] opensm: discovery if new sweep was requested

Sasha Khapyorsky sashak at voltaire.com
Sun Aug 12 13:52:24 PDT 2007


If during discovery phase new sweep was requested, don't do the rest of
sweep things, just re-start discovery

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/opensm/osm_state_mgr.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c
index 6a2045e..f5b9f35 100644
--- a/opensm/opensm/osm_state_mgr.c
+++ b/opensm/opensm/osm_state_mgr.c
@@ -2156,6 +2156,13 @@ Idle:
             break;
 
          case OSM_SIGNAL_NO_PENDING_TRANSACTIONS:
+            /* if new sweep requiested - don't bother with the rest */
+            if( p_mgr->p_subn->force_immediate_heavy_sweep ) {
+               p_mgr->state = OSM_SM_STATE_IDLE;
+               signal = OSM_SIGNAL_SWEEP;
+               break;
+            }
+
             __osm_state_mgr_sweep_heavy_done_msg( p_mgr );
 
             /* If we are MASTER - get the highest remote_sm, and
-- 
1.5.3.rc2.38.g11308




More information about the general mailing list