[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/trunk@1529 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

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

index 488d5d1..2a0f136 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 85c9551..9f7f2c1 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