<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 26, 2019 at 10:55 PM Junsong Li <<a href="mailto:junsongli@fb.com">junsongli@fb.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_1363205710687220025WordSection1">
<p class="MsoNormal"><span style="font-size:12pt;color:black">Hello list,<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black">I have a couple of questions on index translator implementation.<u></u><u></u></span></p>
</div>
<div>
<ul type="disc">
<li class="MsoNormal">
<span style="color:black">Why does gluster need callstub and a different worker queue (and thread) to process those call stubs? Is it just to lower the priority of fops of internal inodes?</span></li></ul></div></div></div></blockquote><div>It is to make sure parallel [f]xattrops on same inode doesn't happen. Index xlator has to maintain indices in the internal directories based on whether or not the xattrs it tracks on the file are non-zero. When we allow parallel [f]xattrops, callbacks of the fops may not reach index xlator in the order they are wound to lower xlators. This can lead to index xlator not maintain indices correctly.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_1363205710687220025WordSection1"><div><ul type="disc"><li class="MsoNormal"><u></u><u></u></li><li class="MsoNormal">
What’s the purpose of “link-count” in xdata? It’s being used only in index_fstat and index_lookup. I see sometimes the key is assigned 0/1 after callback, and sometimes AFR uses it to store flag GF_XATTROP_INDEX_COUNT. Is the code purposely reusing the key?<u></u><u></u></li></ul>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Junsong<u></u><u></u></p>
</div>
</div>
</div>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-devel</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Pranith<br></div></div></div>