[openib-general] [PATCH] OpenSM - Initializing a spinlock twice

Jan Daley jdaley at systemfabricworks.com
Fri Aug 6 14:08:51 PDT 2004


Removing the second initialization of the spinlock.


Index: opensm/cl_event_wheel.c
===================================================================
--- opensm/cl_event_wheel.c	(revision 590)
+++ opensm/cl_event_wheel.c	(working copy)
@@ -249,7 +249,6 @@
   CL_ASSERT( cl_spinlock_init( &(p_event_wheel->lock) ) == CL_SUCCESS
);
   cl_qlist_init( &p_event_wheel->events_wheel);
   cl_qmap_init( &p_event_wheel->events_map );
-  cl_spinlock_init( &p_event_wheel->lock );
 
   /* init the timer with timeout */
   cl_status = cl_timer_init(&p_event_wheel->timer,





Jan Daley
System Fabric Works
(512) 343-6101 x 13







More information about the general mailing list