]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/quiesce: don't take mirrored cap-related locks on the replica 57013/head
authorLeonid Usov <leonid.usov@ibm.com>
Sat, 13 Apr 2024 12:37:03 +0000 (15:37 +0300)
committerLeonid Usov <leonid.usov@ibm.com>
Sun, 21 Apr 2024 09:22:55 +0000 (12:22 +0300)
commitbb8b0bf39275dcd2f09b3d9e87361b3028c2e896
treee8e9965646dbbfa6cd870d5975e73ee96154f631
parent1f350a84cb1aebfed6f1eb8e806f16d9a0215c3d
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>
(cherry picked from commit eac482bfddf8d9c26d0c936a5b34a6fa8a3d5f80)
Fixes: https://tracker.ceph.com/issues/65556
Original-Issue: https://tracker.ceph.com/issues/65472
Original-PR: https://github.com/ceph/ceph/pull/56755
src/mds/MDCache.cc