]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: complete internal op if killed
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 14 Nov 2023 18:50:53 +0000 (13:50 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 20 Mar 2024 14:56:53 +0000 (10:56 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDCache.cc

index 179c461f8072b6bed199529d68c74d8d0b76aed8..d2c118675745387fbf1fa3d051c9ab8409ad666c 100644 (file)
@@ -9938,6 +9938,10 @@ void MDCache::request_kill(const MDRequestRef& mdr)
     mdr->item_session_request.remove_myself();
   } else {
     dout(10) << "request_kill " << *mdr << dendl;
+    if (mdr->internal_op_finish) {
+      mdr->internal_op_finish->complete(-CEPHFS_ECANCELED);
+      mdr->internal_op_finish = nullptr;
+    }
     request_cleanup(mdr);
   }
 }