From: ftillier Date: Mon, 24 Jul 2006 21:23:29 +0000 (+0000) Subject: [UAL] Fix locking around MAD tracking list. X-Git-Url: http://git.etherboot.org/mirror/winof/.git/commitdiff_plain/c9c22d59895adf49db664a4d94d8bc857cc60ee9?ds=sidebyside [UAL] Fix locking around MAD tracking list. git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@428 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/core/al/user/al_mad_pool.c b/core/al/user/al_mad_pool.c index 57029d86..02ad282b 100644 --- a/core/al/user/al_mad_pool.c +++ b/core/al/user/al_mad_pool.c @@ -528,7 +528,7 @@ __cleanup_pool_key( { p_mad_element_list = p_last_mad_element = NULL; - cl_spinlock_acquire( &p_pool_key->h_al->obj.lock ); + cl_spinlock_acquire( &p_pool_key->h_al->mad_lock ); for( p_list_item = cl_qlist_head( &p_pool_key->h_al->mad_list ); p_list_item != cl_qlist_end( &p_pool_key->h_al->mad_list ); p_list_item = p_next_item ) @@ -547,7 +547,7 @@ __cleanup_pool_key( p_last_mad_element = &p_mad->element; p_last_mad_element->p_next = NULL; } - cl_spinlock_release( &p_pool_key->h_al->obj.lock ); + cl_spinlock_release( &p_pool_key->h_al->mad_lock ); /* Return any outstanding MADs to the pool. */ if( p_mad_element_list )