]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: trigger stray reintegration when loading dentry 44514/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 16 Dec 2021 15:44:40 +0000 (10:44 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Sun, 16 Jan 2022 14:56:54 +0000 (09:56 -0500)
commit3077dadee4031118afbd773ad2cc4ce64a5aa2c5
tree73d4d7bee45c027076fa3db302fb0f0b2d2e64a9
parentbf4b949656462d90ef97715969bd8621ef1f711e
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>
(cherry picked from commit 83f9a49dfddcba06ab3e0cd9b860523fafad4605)
src/mds/CDentry.cc