<div dir="ltr">Note that you need to place your syncop code in a synctask function strictly within a syncenv (by calling synctask_new(). You&#39;re probably calling syncop_XXX() directly in your xlator code?<div><br></div>
<div>Avati</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 2:40 AM, fog - <span dir="ltr">&lt;<a href="mailto:fog_is_my_name@hotmail.com" target="_blank">fog_is_my_name@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hello everyone,<br><div><div dir="ltr"><div><div><br></div>I am trying to use syncops in a custom 
translator to keep my code at least borderline readable, but I am having
 limited success. <br><br>Problem Symptoms: <br>Using a syncop in a 
regular fop is fine. However, in a callback it causes a &#39;freeze&#39; 
(synctask_yield called by the SYNCOP macro doesn&#39;t return). <br><br></div><div>What seems to be the Problem: <br></div><div>Looking
 at the traces, there is no corresponding trace from rpc_clnt_reply_init
 on the client to the trace from rpcsvc_submit_generic on the server. In 
other words, the rpc reply gets sent but isn&#39;t correctly received. Obviously this is not really a networking problem but something else... I&#39;d guess it&#39;s a deadlock somewhere on the client?<br></div><div>From
 the point of the syncop call onwards the client doesn&#39;t &#39;get&#39; any rpc 
replies any more (the next GlusterFS Handshake sent by the client, which
 is received by the server and replied to, leads to a disconnection 
accordingly).<br></div><div><br></div><div>Again: This problem is only 
occurring when calling a syncop from a callback function inside my 
translator, if I call the same syncop in a fop call it completes fine.<br><br>I hope you can make sense out of the above problem description. <br></div><div>Thanks for your time ~<br></div><br>                                               </div></div>                                               </div>
</div>
<br>_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
<br></blockquote></div><br></div>