[Bugs] [Bug 1509644] rpc: make actor search parallel

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 6 12:46:03 UTC 2017


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



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18543 committed in master by  

------------- rpc: make actor search parallel

Problem:
On a service request, the actor is searched using an exclusive mutex
lock which is not really necessary since most of the time the actor
list is going to be searched and not modified.

Solution:
Use a read-write lock instead of a mutex lock.
Only modify operations on a service need to be done under a write-lock
which grants exclusive access to the code.

Change-Id: Ia227351b3f794bd8eee70c7a76d833cc716ab113
BUG: 1509644
Signed-off-by: Milind Changire <mchangir at redhat.com>

-- 
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=JqybTc6Pdi&a=cc_unsubscribe


More information about the Bugs mailing list