]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/quiesce: don't take mirrored cap-related locks on the replica 56755/head
authorLeonid Usov <leonid.usov@ibm.com>
Sat, 13 Apr 2024 12:37:03 +0000 (15:37 +0300)
committerLeonid Usov <leonid.usov@ibm.com>
Tue, 16 Apr 2024 05:43:56 +0000 (08:43 +0300)
commiteac482bfddf8d9c26d0c936a5b34a6fa8a3d5f80
tree21d468174ee9207161385d42eb23ce1ebe7a3f1c
parent8ac98428769cf45a8d43431ad0fbefe8cb953f06
mds/quiesce: don't take mirrored cap-related locks on the replica

For every mirrored lock, the auth will message the replica to ensure
the replicated lock state. When we take x/rdlock on the auth, it will
ensure the LOCK_LOCK state on the replica, which has the file caps we
want for quiesce: CACHE and BUFFER.

It should be sufficient to only hold the quiesce local lock
on the replica side.

Signed-off-by: Leonid Usov <leonid.usov@ibm.com>
src/mds/MDCache.cc