]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: trigger stray reintegration when loading dentry 44342/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 16 Dec 2021 15:44:40 +0000 (10:44 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 16 Dec 2021 19:29:47 +0000 (14:29 -0500)
commit83f9a49dfddcba06ab3e0cd9b860523fafad4605
treec36e13f2a4a45416dffe2bcfa2872fbdfe6f1f94
parentbf4168245dec531cb75086fc42f5cbfeb80ce365
mds: trigger stray reintegration when loading dentry

During recursive scrub, the MDS will load a remote dentry into cache but
not necessarily check if reintegration is necessary. Before this commit,
it would only happen when the dentry is returned from a client request.
To effect global reintegration when there are too many strays, this
means a cluster admin would have to do `find` on the CephFS file system.
This is unsavory because of the cache / cap explosion involved.

Fixes: https://tracker.ceph.com/issues/53641
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/CDentry.cc