]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: properly execute scrub finish context 19014/head
authorYan, Zheng <zyan@redhat.com>
Sun, 19 Nov 2017 12:25:22 +0000 (20:25 +0800)
committerYan, Zheng <zyan@redhat.com>
Sun, 19 Nov 2017 12:26:41 +0000 (20:26 +0800)
Bug was introduced by commit 7e52729699 (mds: flush after scrub repairs)

Fixes: http://tracker.ceph.com/issues/22058
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc

index 59ffa841ca0ae1a4473688fa7828e5ed38cac565..946f372c3981f3a977e16bcd8e90f32ba3ba5006 100644 (file)
@@ -12114,7 +12114,7 @@ void MDCache::enqueue_scrub_work(MDRequestRef& mdr)
 
   Context *fin = nullptr;
   if (!header->get_recursive()) {
-    cs->take_finisher();
+    fin = cs->take_finisher();
   }
 
   // If the scrub did some repair, then flush the journal at the end of