[Bugs] [Bug 1346158] Possible crash due to a timer cancellation race

bugzilla at redhat.com bugzilla at redhat.com
Mon Jul 4 13:28:11 UTC 2016


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



--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/14723 committed in release-3.8 by Niels de
Vos (ndevos at redhat.com) 
------
commit 6484ac71abbc183b31767f6ba761f870be37de76
Author: Xavier Hernandez <xhernandez at datalab.es>
Date:   Mon Jun 13 12:42:47 2016 +0200

    cluster/ec: Fix race in timer cancellation

    A race in timer cancellation for delayed unlock could cause a crash
    if the cancelling thread fails to cancel the timer because it has
    already been fired but not executed, and the callback is scheduled
    out of the CPU, delaying it until the thread has released important
    resources needed by the callback.

    This patch improves the handling of this case to make it robust.

    Backport of:
    > Change-Id: I5c8a8c6610c5136f71b938aa78b5878ba05238d4
    > BUG: 1345855
    > Signed-off-by: Xavier Hernandez <xhernandez at datalab.es>
    > Reviewed-on: http://review.gluster.org/14712
    > Smoke: Gluster Build System <jenkins at build.gluster.com>
    > NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    > CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    > Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>

    Change-Id: I5c8a8c6610c5136f71b938aa78b5878ba05238d4
    BUG: 1346158
    Signed-off-by: Xavier Hernandez <xhernandez at datalab.es>
    Reviewed-on: http://review.gluster.org/14723
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>

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


More information about the Bugs mailing list