]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: provide mechanism to authpin while freezing
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 13 Feb 2024 16:07:26 +0000 (11:07 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 20 Mar 2024 14:56:54 +0000 (10:56 -0400)
commita9964a7ccc4394f923fb0f1c76eb8fa03fe8733d
tree943f89d18a851329dc3933b9637e7448ab7b5109
parent3197a975a521654500173175c6e856c54df497ef
mds: provide mechanism to authpin while freezing

When a subtree is freezing, it's no longer possible to acquire new authpins.
This is a problem when a compound request like quiescing a subtree is trying to
acquire authpins for each sub-op. This creates a situation where some quiesce
sub-ops complete with authpins (thereby preventing the tree from becoming
"frozen") and new sub-ops cannot acquire authpins (because the tree is
"freezing"). To circumvent this, allow some authpin requests to proceed if
FLAG_BYPASSFREEZING is set.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/CDentry.cc
src/mds/CDentry.h
src/mds/CDir.cc
src/mds/CDir.h
src/mds/CInode.cc
src/mds/CInode.h
src/mds/MDSCacheObject.h
src/mds/Mutation.cc
src/mds/Mutation.h
src/mds/Server.cc
src/messages/MMDSPeerRequest.h