[Gluster-devel] [RFC] alter inode table lock from mutex to rwlock

Changwei Ge chge at linux.alibaba.com
Thu Aug 22 12:26:23 UTC 2019


Now inode_table_t:lock is type of mutex which I think we can use 
‘pthread_rwlock' to replace it for a better concurrency.

Because phread_rwlock allows more than one thread accessing inode table 
at the same time.
Moreover, the critical section the lock is protecting won't take many 
CPU cycles and no I/O and CPU fault/exception involved after a quick 
glance at glusterfs code.
I hope I didn't miss something.
If I would get an ACK from major glusterfs developer, I will try to do it.


More information about the Gluster-devel mailing list