[Bugs] [Bug 1467614] Gluster read/write performance improvements on NVMe backend

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 8 02:10:57 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1467614



--- Comment #19 from Raghavendra G <rgowdapp at redhat.com> ---
(In reply to Raghavendra G from comment #18)
> Created attachment 1323547 [details]
> modified inode_unref to reduce lock contention on table->lock

Similar improvements can be made to inode_ref, inode_ref_reduce_by_n. Key point
is to follow the following pattern:

* modify inode->ref and note the current ref under inode->lock. unlock post
modification.
* if the value of ref before or after modification results in modification of
various lists of table,
     - acquire table->lock
     - acquire inode->lock
     - ref = inode->ref
     - release inode->lock
     - If the value of ref still indicates that lists of table need to
modified, modify various lists
     - release table->lock

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=1s76viF2HW&a=cc_unsubscribe


More information about the Bugs mailing list