<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>ibv_dealloc_pd after create + destroy of a AV fails (the resource is busy)</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">I'm using svn rev: 2946 on Mellanox HCA 23108.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">In user level: the following scenario fails:</FONT>
<BR><FONT SIZE=2 FACE="Arial">allocate a PD</FONT>
<BR><FONT SIZE=2 FACE="Arial">create AV</FONT>
<BR><FONT SIZE=2 FACE="Arial">destroy AV</FONT>
<BR><FONT SIZE=2 FACE="Arial">deallocate PD</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The problem is that the PD deallocation fails (resource is busy). If i remove the AV creation there isn't any problem.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I attached a small test that reproduces this issue.</FONT>
</P>
<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"> <<ah_problem.c>> </FONT>
</P>
<P><B><I><FONT COLOR="#008080" SIZE=6 FACE="Script">Dotan Barak</FONT></I></B>
<BR><FONT FACE="Times New Roman">Software Verification Engineer</FONT>
<BR><FONT FACE="Times New Roman">Mellanox Technologies LTD</FONT>
<BR><FONT SIZE=1 FACE="Tahoma"><A HREF="mailto:dotanb@mellanox.co.il">mailto:dotanb@mellanox.co.il</A></FONT>
<BR><FONT FACE="Times New Roman">Tel: +972-4-9097200 Ext: 231 Fax: +972-4-9593245</FONT>
<BR><FONT FACE="Times New Roman">P.O. Box 86 Yokneam 20692 ISRAEL.</FONT>
<BR><FONT FACE="Times New Roman">Home: +972-4-8289408 Cell: 0</FONT><FONT SIZE=2 FACE="Arial">52-4222383</FONT>
</P>
<P><FONT COLOR="#008080" SIZE=2 FACE="Arial">[ May the fork be with you ]</FONT>
</P>
</BODY>
</HTML>