]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls_lock: expired lock before unlock and start check 59272/head
authorNitzanMordhai <nmordech@redhat.com>
Sun, 17 Jul 2022 08:01:30 +0000 (08:01 +0000)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 19 Aug 2024 07:47:50 +0000 (14:47 +0700)
commit1c99d02a47a941c7e9119b0d4d2cec3ef7d64ff7
treef5f510359ee356536cb180997a2486383a5e0e34
parentf2c39d4d5abc084f975be26cc0141421e55727d8
cls_lock: expired lock before unlock and start check

If the lock expired, the stat check shouldn't return -ENOENT,
We will change the lock duration to prevent lock expired before the
stat check.

Fixes: https://tracker.ceph.com/issues/56575
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
(cherry picked from commit d3457c64b1bdc26a4379197ae206019a615d2ebc)

Comment from @idryomov:

There is a delta between the original commit and the backport due
to #45762 [1] not getting backported to quincy.

[1] https://github.com/ceph/ceph/pull/45762
src/test/cls_lock/test_cls_lock.cc