]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: allow lock state to be LOCK_MIX_SYNC in replica for filelock 56051/head
authorXiubo Li <xiubli@redhat.com>
Tue, 28 Nov 2023 03:21:38 +0000 (11:21 +0800)
committerXiubo Li <xiubli@redhat.com>
Fri, 8 Mar 2024 00:37:42 +0000 (08:37 +0800)
commit65b79bdd928447d722a3b47e3b6f2c9e9d883a64
treea40f78238365cdd3691b4e378aa65acfb5085417
parent94a539707733325322964c6a187c6a1b41be1daf
mds: allow lock state to be LOCK_MIX_SYNC in replica for filelock

When the auth MDS is transmitting state from LOCK_MIX to LOCK_SYNC
it will transmit the state to a intermidiate state LOCK_MIX_SYNC.
Then notifies the replicate MDSs and waits for the acks. But just
in case for some reasons the replicate MDSs couldn't successfully
transmit the state from LOCK_MIX to LOCK_MIX_SYNC and then
LOCK_MIX_SYNC2. And just the auth MDS failover or restart and
then resend the notification.

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