<div dir="ltr"><div dir="ltr">Hi Changwei Ge,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 22, 2019 at 5:57 PM Changwei Ge &lt;<a href="mailto:chge@linux.alibaba.com">chge@linux.alibaba.com</a>&gt; 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">Hi,<br>
<br>
Now inode_table_t:lock is type of mutex which I think we can use <br>
‘pthread_rwlock&#39; to replace it for a better concurrency.<br>
<br>
Because phread_rwlock allows more than one thread accessing inode table <br>
at the same time.<br>
Moreover, the critical section the lock is protecting won&#39;t take many <br>
CPU cycles and no I/O and CPU fault/exception involved after a quick <br>
glance at glusterfs code.<br>
I hope I didn&#39;t miss something.<br>
If I would get an ACK from major glusterfs developer, I will try to do it.<br>
<br></blockquote><div><br></div><div>You are right. I believe this is possible. No harm in trying this out.</div><div><br></div><div>Xavier, Raghavendra, Pranith, Nithya, do you think this is possible?</div><div><br></div><div>Regards,</div><div><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">
Thanks.<br>
_______________________________________________<br>
<br>
Community Meeting Calendar:<br>
<br>
APAC Schedule -<br>
Every 2nd and 4th Tuesday at 11:30 AM IST<br>
Bridge: <a href="https://bluejeans.com/836554017" rel="noreferrer" target="_blank">https://bluejeans.com/836554017</a><br>
<br>
NA/EMEA Schedule -<br>
Every 1st and 3rd Tuesday at 01:00 PM EDT<br>
Bridge: <a href="https://bluejeans.com/486278655" rel="noreferrer" target="_blank">https://bluejeans.com/486278655</a><br>
<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><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Amar Tumballi (amarts)<br></div></div></div></div></div></div>