]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[UAL] Fix locking around MAD tracking list.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 24 Jul 2006 21:23:29 +0000 (21:23 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 24 Jul 2006 21:23:29 +0000 (21:23 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@428 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/core/al/user/al_mad_pool.c

index 57029d86d1845388a1f2142a2cd91a4852111132..02ad282bc5659eed0eb2763c678b1b575af38449 100644 (file)
@@ -528,7 +528,7 @@ __cleanup_pool_key(
        {\r
                p_mad_element_list = p_last_mad_element = NULL;\r
 \r
-               cl_spinlock_acquire( &p_pool_key->h_al->obj.lock );\r
+               cl_spinlock_acquire( &p_pool_key->h_al->mad_lock );\r
                for( p_list_item = cl_qlist_head( &p_pool_key->h_al->mad_list );\r
                         p_list_item != cl_qlist_end( &p_pool_key->h_al->mad_list );\r
                         p_list_item = p_next_item )\r
@@ -547,7 +547,7 @@ __cleanup_pool_key(
                        p_last_mad_element = &p_mad->element;\r
                        p_last_mad_element->p_next = NULL;\r
                }\r
-               cl_spinlock_release( &p_pool_key->h_al->obj.lock );\r
+               cl_spinlock_release( &p_pool_key->h_al->mad_lock );\r
 \r
                /* Return any outstanding MADs to the pool. */\r
                if( p_mad_element_list )\r