[Bugs] [Bug 1599629] New: Don' t execute statements after decrementing call count in afr

bugzilla at redhat.com bugzilla at redhat.com
Tue Jul 10 08:48:24 UTC 2018


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

            Bug ID: 1599629
           Summary: Don't execute statements after decrementing call count
                    in afr
           Product: GlusterFS
           Version: 4.1
         Component: replicate
          Assignee: bugs at gluster.org
          Reporter: pkarampu at redhat.com
                CC: bugs at gluster.org
        Depends On: 1598663



+++ This bug was initially created as a clone of Bug #1598663 +++

Description of problem:
    When call_count is decremented by one thread, another thread can
    go ahead with the operation leading to undefined behavior for the
    thread executing statements after decrementing call count.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Worker Ant on 2018-07-06 04:39:53 EDT ---

REVIEW: https://review.gluster.org/20470 (cluster/afr: Prevent execution of
code after call_count decrementing) posted (#1) for review on master by Pranith
Kumar Karampuri

--- Additional comment from Worker Ant on 2018-07-10 04:47:13 EDT ---

COMMIT: https://review.gluster.org/20470 committed in master by "Pranith Kumar
Karampuri" <pkarampu at redhat.com> with a commit message- cluster/afr: Prevent
execution of code after call_count decrementing

Problem:
When call_count is decremented by one thread, another thread can
go ahead with the operation leading to undefined behavior for the
thread executing statements after decrementing call count.

Fix:
Do the operations necessary before decrementing call count.

fixes bz#1598663
Change-Id: Icc90cd92ac16e5fbdfe534d9f0a61312943393fe
Signed-off-by: Pranith Kumar K <pkarampu at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1598663
[Bug 1598663] Don't execute statements after decrementing call count in afr
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list