]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
squid: mds/quiesce: overdrive an export if it hasn't frozen the tree yet
authorLeonid Usov <leonid.usov@ibm.com>
Mon, 20 May 2024 16:17:04 +0000 (19:17 +0300)
committerLeonid Usov <leonid.usov@ibm.com>
Tue, 28 May 2024 19:00:42 +0000 (22:00 +0300)
commit511af8a9958101491772b4b7647404db07e02af5
tree9badd9c8371311d19e1ca7752233c34494d50830
parent92eab9e5906b84b0ad0a7abb7e19b60f6b584cf1
squid: mds/quiesce: overdrive an export if it hasn't frozen the tree yet

Just like with the fragmenting, we should abort an ongoing export
if a quiesce is attempted for the directory.

To minimize the stress for the system, we only allow the abort
if the export hasn't yet managed to freeze the tree. If that is the case,
then quiesce will have to wait for the export to finish.

Fixes: https://tracker.ceph.com/issues/66123
Signed-off-by: Leonid Usov <leonid.usov@ibm.com>
(cherry picked from commit da5c263b8e7797eac6c9d13d5b6a6b292d9c5def)
Fixes: https://tracker.ceph.com/issues/66259
src/mds/MDCache.cc
src/mds/Migrator.cc
src/mds/Migrator.h