[Bugs] [Bug 1449232] race condition between client_ctx_get and client_ctx_set

bugzilla at redhat.com bugzilla at redhat.com
Fri May 12 04:47:47 UTC 2017


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



--- Comment #4 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/17219 committed in master by Raghavendra G
(rgowdapp at redhat.com) 
------
commit 333474e0d6efe1a2b3a9ecffc9bdff3e49325910
Author: Zhou Zhengping <johnzzpcrystal at gmail.com>
Date:   Tue May 9 20:57:34 2017 +0800

    libglusterfs: fix race condition in client_ctx_set

        follow procedures:
        1.thread1 client_ctx_get return NULL
        2.thread 2 client_ctx_set ctx1 ok
        3.thread1 client_ctx_set ctx2 ok

        thread1 use ctx1, thread2 use ctx2 and ctx1 will leak

    Change-Id: I990b02905edd1b3179323ada56888f852d20f538
    BUG: 1449232
    Signed-off-by: Zhou Zhengping <johnzzpcrystal at gmail.com>
    Reviewed-on: https://review.gluster.org/17219
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Jeff Darcy <jeff at pl.atyp.us>

-- 
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