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
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
\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