Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

afr: fix race between __afr_eager_lock_handle and afr_wakeup_same_fd_delayed_op (#4425) #4426

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Commits on Oct 22, 2024

  1. afr: fix race between __afr_eager_lock_handle and afr_wakeup_same_fd_…

    …delayed_op (gluster#4425)
    
    Race between __afr_eager_lock_handle and afr_wakeup_same_fd_delayed_op will lead to
    stale inodelks, which may cause subsequent IO blocked.
    To avoid this race, set lock->release = _gf_true also in afr_wakeup_same_fd_delayed_op so
    that a new transaction can be correctly handled as expected in __afr_eager_lock_handle.
    
    Fixes: gluster#4425
    
    Signed-off-by: chenjinhao <chen.jinhao@zte.com.cn>
    陈瑾浩 10307298 committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    b3cd05d View commit details
    Browse the repository at this point in the history