Why do you want to re-init an already existing object? Rather, why do you want to fini an object which you know you will init again? There is a cost to establishing and tearing down glfs_t. Why not initialize it once and use it for the lifetime of the process?<div>
<br></div><div>Avati<br><br><div class="gmail_quote">On Wed, Jul 18, 2012 at 1:15 AM, Bharata B Rao <span dir="ltr">&lt;<a href="mailto:bharata.rao@gmail.com" target="_blank">bharata.rao@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I see the following hang when I reissue glfs_init() to reinitialize<br>
the GlusterFS connection.<br>
<br>
(gdb) bt<br>
#0  0x00007ffff63a2ae5 in pthread_cond_wait@@GLIBC_2.3.2 () from<br>
/lib64/libpthread.so.0<br>
#1  0x00007ffff7284dcb in glfs_init_wait (fs=0x5555569d1f80) at glfs.c:462<br>
<br>
I assume that a proper glfs_fini() should eventually fix this problem.<br>
<br>
Regards,<br>
Bharata.<br>
<span class="HOEnZb"><font color="#888888">--<br>
<a href="http://bharata.sulekha.com/blog/posts.htm" target="_blank">http://bharata.sulekha.com/blog/posts.htm</a>, <a href="http://raobharata.wordpress.com/" target="_blank">http://raobharata.wordpress.com/</a><br>
</font></span></blockquote></div><br></div>