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

octopus: cls_lock: check expired lock before unlock #50303

Closed
wants to merge 1 commit into from

Conversation

NitzanMordhai
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/58872


backport of #45762
parent tracker: https://tracker.ceph.com/issues/38357

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

Check if the lock was expired, if it is, unlock will return -ENOENT and not 0
that will cause the assert to error.

Fixes: https://tracker.ceph.com/issues/38357
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
(cherry picked from commit cf9054d)
@NitzanMordhai NitzanMordhai added this to the octopus milestone Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant