]> git.apps.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 17:02:16 +0000 (22:32 +0530)
commitddf493cd2ec36c32b11b040fa075c891c308033c
tree97a134b5cab459a8751e85c43e56d72af75c994f
parentbf3e9214248a80dac3216047940bb61759d2497e
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