<br>
<br>
<br>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2><br>
&gt;&gt; I add some private function in dht_create() as bellow.<br>
&gt;&gt; <br>
&gt;&gt; When current pwd is not &quot;/&quot;,everything is ok,otherwise,syncop_getxattr
will<br>
&gt;&gt; be blocked(In target subvol,&quot;server3_3_getxatt&quot; did
not run ).<br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; dict_t *xattr = NULL;<br>
&gt;&gt; loc_t loc = {0, };<br>
&gt;&gt; memset (loc.gfid, 0, 16);<br>
&gt;&gt; loc.gfid[15] = 1;<br>
&gt;&gt; ret = syncop_getxattr (subvol, &amp;loc, &amp;xattr,GF_XATTR_PATHINFO_KEY);<br>
&gt;Could you post your private patch in this thread? It would be useful
to <br>
&gt;discuss the specifics of why glusterfs is blocked.<br>
<br>
&gt;syncop_XXX functions should be called only from threads other than<br>
&gt;threads executing event_dispatch_epoll_handler. You could attach gdb
to your hung<br>
&gt;process and confirm that the syncop_getxattr call is executing on a
thread that has<br>
&gt;event_dispatch_epoll_handler early on its stack.<br>
<br>
&gt;What is the goal of your private patch? If I may guess, are you trying<br>
&gt;to create files on a brick that is on the same machine as your mount
point,<br>
&gt;when possible? If so, DHT has Non-uniform file allocation policy (NUFA)
analagous<br>
&gt;to NUMA in memory architectures.<br>
&gt;For more information, see </font></tt><a href="https://github.com/gluster/glusterfs/blob/master/doc/admin-guide/en-US/markdown/admin_managing_volumes.md#non-uniform-file-allocation"><tt><font size=2>https://github.com/gluster/glusterfs/blob/master/doc/admin-guide/en-US/markdown/admin_managing_volumes.md#non-uniform-file-allocation</font></tt></a><tt><font size=2><br>
<br>
HTH,<br>
KP<br>
<br>
We want to place file on any subvol other than local ,in the contrary of
NUFAĦ£</font></tt>
<br>
<br><tt><font size=2>From GDB ,syncop_getxattr is on the same backtrace
of &quot;event_dispatch_epoll_handler&quot; which runing in main thread.So
any response can not come in ?</font></tt>
<br>
<br><tt><font size=2>Great thanks!</font></tt>
<br>
<br><tt><font size=2>YB</font></tt>
<br>
<br><tt><font size=2><br>
</font></tt>
<br>

<br><pre><font color="blue">
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s).  If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited.  If you have received this mail in error, please delete it and notify us immediately.

</font></pre><br>