]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix hang issue when accessing a file under a lost parent directory 36179/head
authorZhi Zhang <willzzhang@tencent.com>
Fri, 10 Jul 2020 09:03:50 +0000 (17:03 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 18 Jul 2020 17:32:28 +0000 (19:32 +0200)
commitf9d5743d63454e1b36053a25e5dd76be4ba5b7b6
tree112b7011867fd29d1d53860515514127936c144a
parentebb3b88fa355f722566c51bd067c51fed0e1c497
mds: fix hang issue when accessing a file under a lost parent directory

When a directory metadata is lost, if we looked up a file under this lost directory,
this request will hang forever.

Fixes: https://tracker.ceph.com/issues/46129
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
(cherry picked from commit 778917c426d3c8611c5e5f209840a674c09fef0a)

Conflicts:
src/mds/CDir.h
- "git cherry-picked" failed to find the right hunk; made the change
  manually
src/mds/CDir.cc
src/mds/CDir.h