diff mbox

opensm/osm_sm_state_mgr.c: Start sweep immedeately when recieving HANDOVER in DISCOVERING state

Message ID 58D7FA4D54027743B71E05095945B961016359C3FE@MX42A.corp.emc.com (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Dorfman, Eli Feb. 5, 2013, 3:10 p.m. UTC
Thanks for the fast response and update.
Which opensm & OFED versions will include this fix?

Note that my email has changed to emc.com - please update.
Thanks again,
Eli
diff mbox

Patch

diff --git a/opensm/osm_sm_state_mgr.c b/opensm/osm_sm_state_mgr.c
index 7da8258..c996ea2 100644
--- a/opensm/osm_sm_state_mgr.c
+++ b/opensm/osm_sm_state_mgr.c
@@ -294,11 +294,13 @@  ib_api_status_t osm_sm_state_mgr_process(osm_sm_t * sm,
                        break;
                case OSM_SM_SIGNAL_HANDOVER:
                        /*
-                        * Do nothing. We will discover it later on. If we already discovered
-                        * this SM, and got the HANDOVER - this means the remote SM is of
-                        * lower priority. In this case we will stop polling it (since it is
-                        * a lower priority SM in STANDBY state).
+                        * Signal for a new sweep. We need to discover the other SM.
+                        * If we already discovered this SM, and got the
+                        * HANDOVER - this means the remote SM is of lower priority.
+                        * In this case we will stop polling it (since it is a lower
+                        * priority SM in STANDBY state).
                         */
+                       osm_sm_signal(sm, OSM_SIGNAL_SWEEP);
                        break;
                default:
                        sm_state_mgr_signal_error(sm, signal);