]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph: allow xlock state to be LOCK_SYNC when putting it 53661/head
authorXiubo Li <xiubli@redhat.com>
Tue, 26 Sep 2023 04:55:41 +0000 (12:55 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 26 Sep 2023 04:55:41 +0000 (12:55 +0800)
commitf96c44aab3d40258b24e8d76be8efb14315d14b5
treef544d4f7477abfd133da5d8c9484b0e66d161e94
parent3ea0ca348c35aacb032b4df1aca2357c6fdf006a
ceph: allow xlock state to be LOCK_SYNC when putting it

When the journal logs are successfully flushed the lockers' state
could be LOCK_SYNC during the xlock count is non-zero.

Fixes: https://tracker.ceph.com/issues/44565
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit cf42b377c4be665765f4e2136f5ee8e73a6289e5)
src/mds/Locker.cc
src/mds/SimpleLock.h