]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: just delete MDSIOContextBase during shutdown 33538/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 25 Feb 2020 18:36:11 +0000 (10:36 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 25 Feb 2020 18:39:41 +0000 (10:39 -0800)
We don't want the finisher called during shutdown.

Fixes: https://tracker.ceph.com/issues/44295
Fixes: 73436961512bd87981244fa48212085faf7028c4
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDSContext.cc

index 34b15a4f08bf96ccdc38318d783c688a6f15dee1..fdf62b6f1acddd9cb0b18a3c2bf4a3a866b2753b 100644 (file)
@@ -98,11 +98,8 @@ void MDSIOContextBase::complete(int r) {
   if (mds->is_daemon_stopping()) {
     dout(4) << "MDSIOContextBase::complete: dropping for stopping "
             << typeid(*this).name() << dendl;
-    MDSContext::complete(r);
-    return;
-  }
-
-  if (r == -EBLACKLISTED) {
+    delete this;
+  } else if (r == -EBLACKLISTED) {
     derr << "MDSIOContextBase: blacklisted!  Restarting..." << dendl;
     mds->respawn();
   } else {