[WSD] Fix synchronization issue in ibsp_conn_insert.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 16 May 2006 18:31:23 +0000 (18:31 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 16 May 2006 18:31:23 +0000 (18:31 +0000)
Submitted by: Tzachi Dar (tzachid@mellanox.co.il)

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@355 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibsp_iblow.c

index 05ceabf..8376d79 100644 (file)
@@ -1209,10 +1209,10 @@ ibsp_conn_insert(
        cl_rbmap_item_t                         *p_item, *p_insert_at;\r
        boolean_t                                       left = TRUE;\r
 \r
+       cl_spinlock_acquire( &g_ibsp.socket_info_mutex );\r
        p_item = cl_rbmap_root( &g_ibsp.conn_map );\r
        p_insert_at = p_item;\r
 \r
-       cl_spinlock_acquire( &g_ibsp.socket_info_mutex );\r
        CL_ASSERT( !s->conn_item.p_map );\r
        while( p_item != cl_rbmap_end( &g_ibsp.conn_map ) )\r
        {\r