]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: enqueue ~mdsdir at the time of enqueing root
authorDhairya Parmar <dparmar@redhat.com>
Mon, 22 May 2023 07:04:51 +0000 (12:34 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Tue, 18 Jul 2023 16:59:22 +0000 (22:29 +0530)
commit78301e3e8d81458d8e5eb6dc6920394393a96589
tree6c7751d7e4ba4cf6165a1521e13fa64fb513708a
parent7db7fca6149c8bcbf2b2529e72c0e2b7f9519fda
mds: enqueue ~mdsdir at the time of enqueing root

This would avoid the need to run individual scrubs for
~mdsdir and root, i.e. run both the scrubs under the
same header, this also helps to avoid edge case where
in case ~mdsdir is huge and it's taking time to scrub it,
the scrub status would report something like this until
root inodes kick in:

{
    "status": "scrub active (757 inodes in the stack)",
    "scrubs": {}
}

Fixes: https://tracker.ceph.com/issues/59350
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit f85b22818b474911cfdc15e7c6be1d2979939888)
src/mds/MDCache.cc
src/mds/MDSRank.cc
src/mds/ScrubStack.cc