]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[MLX4] clean ibv_context (mutex is redundant since p_ca_attr was removed) [mlnx:...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 27 Aug 2008 16:53:54 +0000 (16:53 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 27 Aug 2008 16:53:54 +0000 (16:53 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@1529 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mlx4/user/hca/mlx4.c
trunk/hw/mlx4/user/hca/verbs.h

index 488d5d1e067a329b7cc1fa6e6c4853c343c0c4ab..2a0f136fe07e206f3c4ec87d9c84106d7e4e64bd 100644 (file)
@@ -78,10 +78,6 @@ struct ibv_context * mlx4_alloc_context()
        if (!context->db_list_mutex)\r
                goto err_db_mutex;\r
 \r
-       context->ibv_ctx.mutex = CreateMutex(NULL, FALSE, NULL);\r
-       if (!context->ibv_ctx.mutex)\r
-               goto err_ctx_mutex;\r
-\r
        if (cl_spinlock_init(&context->uar_lock))\r
                goto err_uar_spinlock;\r
 \r
@@ -93,8 +89,6 @@ struct ibv_context * mlx4_alloc_context()
 err_bf_spinlock:\r
        cl_spinlock_destroy(&context->uar_lock);\r
 err_uar_spinlock:\r
-       CloseHandle(context->ibv_ctx.mutex);\r
-err_ctx_mutex:\r
        CloseHandle(context->db_list_mutex);\r
 err_db_mutex:\r
 #ifdef XRC_SUPPORT\r
@@ -168,7 +162,6 @@ void mlx4_free_context(struct ibv_context *ctx)
 \r
        cl_spinlock_destroy(&context->bf_lock);\r
        cl_spinlock_destroy(&context->uar_lock);\r
-       CloseHandle(context->ibv_ctx.mutex);\r
        CloseHandle(context->db_list_mutex);\r
 #ifdef XRC_SUPPORT\r
        CloseHandle(context->xrc_srq_table_mutex);\r
index 85c9551ed62444242d3d976b5e1d9dfb1d3c11f4..9f7f2c143b339b9580717be4402d3d9e9546fb11 100644 (file)
@@ -210,7 +210,6 @@ struct ibv_ah {
 \r
 struct ibv_context {\r
        int                             page_size;\r
-       pthread_mutex_t mutex;\r
 };\r
 \r
 \r