]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix hang issue when accessing a file under a lost parent directory 37020/head
authorZhi Zhang <willzzhang@tencent.com>
Fri, 10 Jul 2020 09:03:50 +0000 (17:03 +0800)
committerVicente Cheng <freeze.bilsted@gmail.com>
Mon, 7 Sep 2020 08:30:45 +0000 (08:30 +0000)
commit2515d60f8db8e5488c0d39f036ac73984bfbe39e
treec94309d3bd2aea7af2687ae2365faf7404ed38ed
parent65d8836383deeacfc8343f8d6563548a4c44c835
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)
src/mds/CDir.cc
src/mds/CDir.h