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

Conversation

chen1195585098
Copy link
Contributor

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: #4425

…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>
@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

2 similar comments
@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

@amarts
Copy link
Member

amarts commented Oct 26, 2024

/run regression

@amarts
Copy link
Member

amarts commented Oct 26, 2024

@pranithk @rafikc30 fyi

@gluster-ant
Copy link
Collaborator

1 test(s) failed
./tests/00-geo-rep/00-georep-verify-non-root-setup.t

0 test(s) generated core

2 test(s) needed retry
./tests/000-flaky/bugs_core_multiplex-limit-issue-151.t
./tests/00-geo-rep/00-georep-verify-non-root-setup.t
https://build.gluster.org/job/gh_centos7-regression/3424/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion failed: !(*take_lock) will cause stale inodelk and block subsequent IO
3 participants