[ofa-general] [PATCH 2/4] opensm/main.c rescan subnet configuration after SIGHUP

Sasha Khapyorsky sashak at voltaire.com
Mon Feb 2 12:59:31 PST 2009


On 16:32 Mon 26 Jan     , Eli Dorfman (Voltaire) wrote:
>  rescan subnet configuration after SIGHUP
>  call osm_subn_rescan_conf_files() after SIGHUP.
>  this is important when priority is changed and SM is in standby.
>  in that case it will not send capability mask trap and will not become master.
> 
> Signed-off-by: Eli Dorfman <elid at voltaire.com>
> ---
>  opensm/opensm/main.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/opensm/opensm/main.c b/opensm/opensm/main.c
> index f786192..0f7b822 100644
> --- a/opensm/opensm/main.c
> +++ b/opensm/opensm/main.c
> @@ -507,6 +507,7 @@ int osm_manager_loop(osm_subn_opt_t * p_opt, osm_opensm_t * p_osm)
>  			osm_hup_flag = 0;
>  			/* a HUP signal should only start a new heavy sweep */
>  			p_osm->subn.force_heavy_sweep = TRUE;
> +			osm_subn_rescan_conf_files(&p_osm->subn);

Is it synchronized with sweep? If regular (scheduled by timer) sweep
starts in a middle of osm_subn_rescan_conf_files() (when QoS parameters
are freed..., etc.). I think it is not.

Sasha

>  			osm_opensm_sweep(p_osm);
>  		}
>  	}
> -- 
> 1.5.5
> 



More information about the general mailing list