]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: progress the recover queue immediately after the inode is enqueued 42062/head
authorXiubo Li <xiubli@redhat.com>
Wed, 19 May 2021 07:54:12 +0000 (15:54 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 28 Jun 2021 19:38:50 +0000 (12:38 -0700)
Fixes: https://tracker.ceph.com/issues/50840
Signed-off-by: "Yan, Zheng" <ukernel@gmail.com>
(cherry picked from commit 616ebc3f04620c22439a62f3af35845fa98e508f)

src/mds/Locker.cc

index a2fbe76625ab2435d2f2ae232f30bbcfda4dcda4..d1c25250d62a17ba22ee19507387e9748aca50d2 100644 (file)
@@ -5454,6 +5454,7 @@ void Locker::file_eval(ScatterLock *lock, bool *need_issue)
   }
   else if (in->state_test(CInode::STATE_NEEDSRECOVER)) {
     mds->mdcache->queue_file_recover(in);
+    mds->mdcache->do_file_recover();
   }
 }