<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=007280416-27082008>Hi 
Leonid,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=007280416-27082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=007280416-27082008>The 
patch cleans ibv_context struct. mutex filed used to guard p_ca_attr that 
was used in "get_gid_index".</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=007280416-27082008>p_ca_attr was removed when "get_gid_index" 
</SPAN></FONT><FONT face=Arial color=#0000ff size=2><SPAN 
class=007280416-27082008>moved from uvp to ibal code.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=007280416-27082008>[MLNX 
: 3051]</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><EM>Thanks, 
Reuven.</EM></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=007280416-27082008><FONT face=Arial color=#0000ff 
size=2>>>>>>>>>>>>>>>>>>>>>>>>>>>>></FONT></SPAN></DIV>
<DIV><SPAN class=007280416-27082008><FONT face=Arial color=#0000ff size=2>Index: 
hw/mlx4/user/hca/mlx4.c<BR>===================================================================<BR>--- 
hw/mlx4/user/hca/mlx4.c (revision 1521)<BR>+++ 
hw/mlx4/user/hca/mlx4.c (working copy)<BR>@@ -78,10 +78,6 
@@<BR>  if (!context->db_list_mutex)<BR>   goto 
err_db_mutex;<BR> <BR>- context->ibv_ctx.mutex = CreateMutex(NULL, 
FALSE, NULL);<BR>- if (!context->ibv_ctx.mutex)<BR>-  goto 
err_ctx_mutex;<BR>-<BR>  if 
(cl_spinlock_init(&context->uar_lock))<BR>   goto 
err_uar_spinlock;<BR> <BR>@@ -93,8 +89,6 
@@<BR> err_bf_spinlock:<BR>  cl_spinlock_destroy(&context->uar_lock);<BR> err_uar_spinlock:<BR>- CloseHandle(context->ibv_ctx.mutex);<BR>-err_ctx_mutex:<BR>  CloseHandle(context->db_list_mutex);<BR> err_db_mutex:<BR> #ifdef 
XRC_SUPPORT<BR>@@ -168,7 +162,6 
@@<BR> <BR>  cl_spinlock_destroy(&context->bf_lock);<BR>  cl_spinlock_destroy(&context->uar_lock);<BR>- CloseHandle(context->ibv_ctx.mutex);<BR>  CloseHandle(context->db_list_mutex);<BR> #ifdef 
XRC_SUPPORT<BR>  CloseHandle(context->xrc_srq_table_mutex);<BR>Index: 
hw/mlx4/user/hca/verbs.h<BR>===================================================================<BR>--- 
hw/mlx4/user/hca/verbs.h (revision 1521)<BR>+++ 
hw/mlx4/user/hca/verbs.h (working copy)<BR>@@ -210,7 +210,6 
@@<BR> <BR> struct ibv_context 
{<BR>  int    page_size;<BR>- pthread_mutex_t mutex;<BR> };<BR> <BR> <BR></FONT></SPAN></DIV></BODY></HTML>