PerfMgr: Eliminate no longer used sig_sweep variable
PATCH 1/1 PerfMgr: Eliminate no longer used sig_sweep variable
sig_sweep was mostly neutered back in 2007.
Code in osm_perfmgr.c:osm_perfmgr_process is problematic if max_outstanding_queries is exceeded as nothing signals sig_sweep event anymore. Remove this as this code is no longer needed.
---
include/opensm/osm_perfmgr.h +0 -1
@@ -125,7 +125,6 @@ struct osm_opensm;* be manipulated only through the provided functions. */ typedef struct osm_perfmgr { - cl_event_t sig_sweep; cl_timer_t sweep_timer; struct osm_opensm *osm; osm_subn_t *subn;
opensm/osm_perfmgr.c +0 -6
@@ -1071,10 +1071,6 @@ void osm_perfmgr_process(osm_perfmgr_t * pm)remove_marked_nodes (pm);#ifdef ENABLE_OSM_PERF_MGR_PROFILE -/* spin on outstanding queries */ -while (pm->outstanding_queries >0 ) -cl_event_wait_on (&pm->sig_sweep,1000 , TRUE); -gettimeofday (&after,NULL );diff_time (&before, &after, &after); osm_log_v2(pm->log, OSM_LOG_INFO, FILE_ID,
@@ -1876,8 +1872,6 @@ ib_api_status_t osm_perfmgr_init(osm_perfmgr_t * pm, osm_opensm_t * osm,memset (pm,0 ,sizeof (*pm)); -cl_event_construct (&pm->sig_sweep); -cl_event_init (&pm->sig_sweep, FALSE); pm->subn = &osm->subn; pm->sm = &osm->sm; pm->log = &osm->log;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html