Thanks for reply, you are right, there may be something still holds a reference of that, which also cause the device busy after 'dmsetup remove'.<br><br>I figure out the reason is that, there is one "divide error" which may crash device mapper, I just do not expect that is the reason why destruction of target never got invoked.<br>
<br>Thanks very much.<br><br>Alan<br><br><div class="gmail_quote">2008/11/9 Alasdair G Kergon <span dir="ltr"><<a href="mailto:agk@redhat.com">agk@redhat.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Sun, Nov 09, 2008 at 12:27:24AM -0500, Reng Zeng wrote:<br>
> However, I use "dmsetup remove" hundreds times, as the debug info, but it<br>
> never enter the dtr function I defined.<br>
> Anybody have idea on this? Or how to dig into that to discover the reason?<br>
<br>
</div>Something still holds a reference to the table?<br>
E.g. you have dm_table_get() without a matching dm_table_put() somewhere.<br>
<br>
Try a debugger like kgdb?  Check t->holders?<br>
<br>
Or post your code here (assuming it's GPL) and someone might help.<br>
<br>
Alasdair<br>
--<br>
<a href="mailto:agk@redhat.com">agk@redhat.com</a><br>
<font color="#888888"><br>
--<br>
dm-devel mailing list<br>
<a href="mailto:dm-devel@redhat.com">dm-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/dm-devel" target="_blank">https://www.redhat.com/mailman/listinfo/dm-devel</a><br>
</font></blockquote></div><br>